Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
merge: restore local master fixes while preserving remote updates
Leggett241dcff150f1
diff --cc apps/daemon/src/api/routes.creator.tsindex 60246855,f7139793..73aea870--- a/apps/daemon/src/api/routes.creator.ts+++ b/apps/daemon/src/api/routes.creator.ts@@@ -115,9 -116,39 +117,40 @@@ export async function registerCreatorRoreadServicesConfig?(): Promise<CreatorServicesConfig>;codexImageRuntime?: CodexNativeImageRuntime;issueService?: CreatorIssueService;+ subtitlePreviewService?: SubtitlePreviewService;}): Promise<void> {+ await registerCreatorThumbnailRoutes(server, service, options.readServicesConfig);+ server.get('/creator/subtitle-preview', async (request, reply) => {+ try {+ const query = readObject(request.query);+ const input = z.object({+ width: z.number().int().min(32).max(1920),+ height: z.number().int().min(32).max(1920),+ subtitleStyle: creatorSubtitleStyleSchema,+ bilingual: z.boolean(),+ subtitlePosition: z.enum(['top', 'bottom']),+ translationText: z.string().min(1).max(128).regex(/^[^\r\n{}\\]+$/u),+ originalText: z.string().min(1).max(128).regex(/^[^\r\n{}\\]+$/u)+ }).strict().parse(JSON.parse(readString(query.options, 'options')));+ if (options.subtitlePreviewService === undefined) {+ return reply.code(503).send(apiError('creator_subtitle_style_unsupported', 'Subtitle renderer is unavailable'));+ }+ const controller = new AbortController();+ const cancel = () => { if (!reply.raw.writableEnded) controller.abort(); };+ reply.raw.once('close', cancel);+ try {+ const png = await options.subtitlePreviewService.render(input, controller.signal);+ return reply.type('image/png').header('Cache-Control', 'no-store').send(png);+ } finally {+ reply.raw.removeListener('close', cancel);+ }+ } catch (error) {+ if (error instanceof SyntaxError) return reply.code(400).send(apiError('VALIDATION_FAILED', 'Invalid preview options'));+ if (error instanceof ZodError || error instanceof TypeError) return sendCreatorError(reply, error);+ return reply.code(503).send(apiError('creator_subtitle_style_unsupported', error instanceof Error ? error.message : 'Subtitle preview failed'));+ }+ });if (options.stickmanVisualAssets !== undefined) {server.get('/creator/visual-assets', async (request, reply) => {try {diff --cc apps/web/src/features/dashboard/creator-session-store.tsxindex 6df7e7d2,c510d322..ff3d3f5d--- a/apps/web/src/features/dashboard/creator-session-store.tsx+++ b/apps/web/src/features/dashboard/creator-session-store.tsx@@@ -71,7 -71,7 +71,8 @@@ export type CreatorSessionContextValueuploadArticleImage(file: File): Promise<CreatorArtifact>;uploadSourceDocument(file: File): Promise<void>;openArtifact(artifactId: string): Promise<Response>;+ openDownloadThumbnail(probeArtifactId: string): Promise<Response>;+ openSubtitlePreview?: CreatorWebService['openSubtitlePreview'];openArtifactJson<T = unknown>(artifactId: string): Promise<T>;agentSession: CreatorAgentSession | null;turns: CreatorAgentTurn[];@@@ -167,7 -167,7 +168,8 @@@ export function CreatorSessionProvider(| 'listIssues'| 'reportClientIssue'| 'openArtifact'+ | 'openDownloadThumbnail'+ | 'openSubtitlePreview'| 'uploadReferenceImage'| 'uploadArticleImage'| 'uploadSourceVideo'@@@ -999,7 -994,7 +1001,8 @@@uploadSourceVideo,uploadArticleImage,openArtifact,+ openDownloadThumbnail,+ openSubtitlePreview: props.service.openSubtitlePreview,openArtifactJson,agentSession,turns,@@@ -1010,7 -1005,7 +1013,7 @@@steerAgentTurn,interruptAgentTurn,respondAgentApproval- }), [connection, reconnect, agentBusy, agentSession, askPendingIssue, applyAction, applyRemoteSnapshot, approvals, cancelJob, captureCreatorFailure, clearError, confirmedJob, conflictedFields, draft, error, flush, focusIssue, focusedIssue, interruptAgentTurn, issues, items, openArtifact, openDownloadThumbnail, openArtifactJson, preflight, repairIssue, respondAgentApproval, resumeJob, runAgentTurn, runPreflight, steerAgentTurn, turns, updateDraft, uploadArticleImage, uploadReferenceImage, uploadSourceDocument, uploadSourceVideo]);- }), [connection, reconnect, agentBusy, agentSession, askPendingIssue, applyAction, applyRemoteSnapshot, approvals, cancelJob, captureCreatorFailure, clearError, confirmedJob, conflictedFields, draft, error, flush, focusIssue, focusedIssue, interruptAgentTurn, issues, items, openArtifact, openArtifactJson, preflight, props.service.openSubtitlePreview, repairIssue, respondAgentApproval, resumeJob, runAgentTurn, runPreflight, steerAgentTurn, turns, updateDraft, uploadArticleImage, uploadReferenceImage, uploadSourceDocument, uploadSourceVideo]);++ }), [connection, reconnect, agentBusy, agentSession, askPendingIssue, applyAction, applyRemoteSnapshot, approvals, cancelJob, captureCreatorFailure, clearError, confirmedJob, conflictedFields, draft, error, flush, focusIssue, focusedIssue, interruptAgentTurn, issues, items, openArtifact, openDownloadThumbnail, openArtifactJson, preflight, props.service.openSubtitlePreview, repairIssue, respondAgentApproval, resumeJob, runAgentTurn, runPreflight, steerAgentTurn, turns, updateDraft, uploadArticleImage, uploadReferenceImage, uploadSourceDocument, uploadSourceVideo]);return (<CreatorSessionContext.Provider value={value}>diff --cc apps/web/src/services/creator-service.tsindex 3878a5ab,2141c649..77b1155d--- a/apps/web/src/services/creator-service.ts+++ b/apps/web/src/services/creator-service.ts@@@ -51,10 -52,10 +52,14 @@@ export function createCreatorService(clconst lastEventIdByJob = new Map<string, string>();const consumedEventIds = new Map<string, Set<string>>();return {+ openDownloadThumbnail(jobId: string, probeArtifactId: string): Promise<Response> {+ if (client.rawGet === undefined) throw new Error('Video thumbnail transport is unavailable');+ return client.rawGet(`/creator/jobs/${encodeURIComponent(jobId)}/artifacts/${encodeURIComponent(probeArtifactId)}/thumbnail`);+ },+ openSubtitlePreview(input: CreatorSubtitlePreviewRequest, options?: { signal?: AbortSignal }): Promise<Response> {+ if (client.rawGet === undefined) throw new Error('Subtitle preview transport is unavailable');+ return client.rawGet(`/creator/subtitle-preview?${new URLSearchParams({ options: JSON.stringify(input) })}`, options);+ },listTemplates(): Promise<CreatorTemplateListResponse> {return client.get('/creator/templates') as Promise<CreatorTemplateListResponse>;},