MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / assertUserOwnsSession

Function assertUserOwnsSession

apps/web/src/routers/cloud-agent-next-router.ts:89–102  ·  view source on GitHub ↗
(userId: string, cloudAgentSessionId: string)

Source from the content-addressed store, hash-verified

87 baseListPreviewServicesNextSchema,
88 cloudAgentGetAttachmentUploadUrlSchema,
89 cloudAgentGetAttachmentDownloadUrlSchema,
90 cloudAgentReleasePendingUploadsSchema,
91} from './cloud-agent-next-schemas';
92import {
93 generateCloudAgentAttachmentUploadUrl,
94 generateCloudAgentAttachmentDownloadUrl,
95} from '@/lib/r2/cloud-agent-attachments';
96import {
97 linkAttachmentsForDispatch,
98 releasePendingUploads,
99} from '@/lib/r2/cloud-agent-pending-uploads';
100import * as z from 'zod';
101import { PLATFORM } from '@/lib/integrations/core/constants';
102import { signPreviewTicket, signStreamTicket } from '@/lib/cloud-agent/stream-ticket';
103import { buildPreviewOpenUrl, buildPreviewUrlTemplate } from '@/lib/cloud-agent/preview-open-url';
104import { verifyUserOwnsPreviewWorktree } from '@/lib/cloud-agent-next/preview-worktree-access';
105import { db } from '@kilocode/web-shared/lib/drizzle';

Callers 1

Tested by

no test coverage detected