@purpleschool/gptbot-tools 0.2.23-stage → 0.2.24-stage
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/build/language/models/language.schema.js +2 -0
- package/build/presentation/models/slide-content.schema.js +4 -4
- package/build/video/enums/video-strategy.enum.js +1 -0
- package/build/writer/commands/create-writer-document.command.js +2 -1
- package/language/models/language.schema.ts +2 -0
- package/package.json +1 -1
- package/presentation/models/slide-content.schema.ts +4 -4
- package/video/enums/video-strategy.enum.ts +1 -0
- package/writer/commands/create-writer-document.command.ts +2 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LanguageSchema = void 0;
|
|
4
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
4
5
|
const zod_1 = require("zod");
|
|
5
6
|
exports.LanguageSchema = zod_1.z.object({
|
|
6
7
|
uuid: zod_1.z.string(),
|
|
7
8
|
name: zod_1.z.string(),
|
|
8
9
|
order: zod_1.z.number(),
|
|
10
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
9
11
|
createdAt: zod_1.z.date(),
|
|
10
12
|
updatedAt: zod_1.z.date(),
|
|
11
13
|
});
|
|
@@ -11,7 +11,7 @@ exports.ImageSlotSchema = zod_1.z.object({
|
|
|
11
11
|
uuid: zod_1.z
|
|
12
12
|
.string()
|
|
13
13
|
.uuid()
|
|
14
|
-
.describe('
|
|
14
|
+
.describe('UUID assigned by the backend after generation, used for future lookups'),
|
|
15
15
|
prompt: zod_1.z
|
|
16
16
|
.string()
|
|
17
17
|
.describe('Image generation prompt. MUST be written in ENGLISH regardless of the presentation language. ' +
|
|
@@ -28,7 +28,7 @@ exports.IconSlotSchema = zod_1.z.object({
|
|
|
28
28
|
uuid: zod_1.z
|
|
29
29
|
.string()
|
|
30
30
|
.uuid()
|
|
31
|
-
.describe('
|
|
31
|
+
.describe('UUID assigned by the backend after generation, used for future lookups'),
|
|
32
32
|
prompt: zod_1.z.string().describe('Provide a search query for an fitting icon. MUST BE IN ENGLISH'),
|
|
33
33
|
});
|
|
34
34
|
exports.CoverSlideDataSchema = zod_1.z.object({
|
|
@@ -122,13 +122,13 @@ exports.TextSlideDataSchema = zod_1.z.object({
|
|
|
122
122
|
.max(70),
|
|
123
123
|
description: zod_1.z
|
|
124
124
|
.string()
|
|
125
|
-
.describe('Expository prose split into 2–3 paragraphs separated by \\n\\n (double newline). Total length
|
|
125
|
+
.describe('Expository prose split into 2–3 paragraphs separated by \\n\\n (double newline). Total length 180–800 characters. ' +
|
|
126
126
|
'Use **bold** to highlight 1–3 key terms per paragraph (NOT entire sentences). ' +
|
|
127
127
|
'Use *italics* for definitions, counter-points, or light emphasis (1 per paragraph max). ' +
|
|
128
128
|
'NO bullet points, NO markdown headers, NO numbered lists. ' +
|
|
129
129
|
'Each paragraph covers ONE focused idea: e.g. context → main argument → implication. ' +
|
|
130
130
|
'Do NOT start consecutive paragraphs with the same word. Do NOT cut text short mid-sentence.')
|
|
131
|
-
.min(
|
|
131
|
+
.min(180)
|
|
132
132
|
.max(800),
|
|
133
133
|
version: zod_1.z.literal(1),
|
|
134
134
|
});
|
|
@@ -15,4 +15,5 @@ var VIDEO_GENERATION_STRATEGY;
|
|
|
15
15
|
VIDEO_GENERATION_STRATEGY["WAN_2_6_VIDEO_GENERATION_CALLBACK"] = "WAN_2_6_VIDEO_GENERATION_CALLBACK";
|
|
16
16
|
VIDEO_GENERATION_STRATEGY["WAN_2_7_VIDEO_GENERATION_CALLBACK"] = "WAN_2_7_VIDEO_GENERATION_CALLBACK";
|
|
17
17
|
VIDEO_GENERATION_STRATEGY["GROK_VIDEO_GENERATION_CALLBACK"] = "GROK_VIDEO_GENERATION_CALLBACK";
|
|
18
|
+
VIDEO_GENERATION_STRATEGY["HAPPYHORSE_VIDEO_GENERATION_CALLBACK"] = "HAPPYHORSE_VIDEO_GENERATION_CALLBACK";
|
|
18
19
|
})(VIDEO_GENERATION_STRATEGY || (exports.VIDEO_GENERATION_STRATEGY = VIDEO_GENERATION_STRATEGY = {}));
|
|
@@ -4,10 +4,11 @@ exports.CreateWriterDocumentCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("../../common");
|
|
6
6
|
const models_1 = require("../models");
|
|
7
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
8
|
var CreateWriterDocumentCommand;
|
|
8
9
|
(function (CreateWriterDocumentCommand) {
|
|
9
10
|
CreateWriterDocumentCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
locale: common_1.LocaleSchema,
|
|
11
|
+
locale: common_1.LocaleSchema.default(rugpt_lib_common_1.LOCALE.RU),
|
|
11
12
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
13
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
14
|
prompt: zod_1.z.string(),
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
|
|
3
4
|
export const LanguageSchema = z.object({
|
|
4
5
|
uuid: z.string(),
|
|
5
6
|
name: z.string(),
|
|
6
7
|
order: z.number(),
|
|
8
|
+
locale: z.nativeEnum(LOCALE),
|
|
7
9
|
createdAt: z.date(),
|
|
8
10
|
updatedAt: z.date(),
|
|
9
11
|
});
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ export const ImageSlotSchema = z.object({
|
|
|
9
9
|
uuid: z
|
|
10
10
|
.string()
|
|
11
11
|
.uuid()
|
|
12
|
-
.describe('
|
|
12
|
+
.describe('UUID assigned by the backend after generation, used for future lookups'),
|
|
13
13
|
prompt: z
|
|
14
14
|
.string()
|
|
15
15
|
.describe(
|
|
@@ -30,7 +30,7 @@ export const IconSlotSchema = z.object({
|
|
|
30
30
|
uuid: z
|
|
31
31
|
.string()
|
|
32
32
|
.uuid()
|
|
33
|
-
.describe('
|
|
33
|
+
.describe('UUID assigned by the backend after generation, used for future lookups'),
|
|
34
34
|
prompt: z.string().describe('Provide a search query for an fitting icon. MUST BE IN ENGLISH'),
|
|
35
35
|
});
|
|
36
36
|
export type IconSlot = z.infer<typeof IconSlotSchema>;
|
|
@@ -248,14 +248,14 @@ export const TextSlideDataSchema = z.object({
|
|
|
248
248
|
description: z
|
|
249
249
|
.string()
|
|
250
250
|
.describe(
|
|
251
|
-
'Expository prose split into 2–3 paragraphs separated by \\n\\n (double newline). Total length
|
|
251
|
+
'Expository prose split into 2–3 paragraphs separated by \\n\\n (double newline). Total length 180–800 characters. ' +
|
|
252
252
|
'Use **bold** to highlight 1–3 key terms per paragraph (NOT entire sentences). ' +
|
|
253
253
|
'Use *italics* for definitions, counter-points, or light emphasis (1 per paragraph max). ' +
|
|
254
254
|
'NO bullet points, NO markdown headers, NO numbered lists. ' +
|
|
255
255
|
'Each paragraph covers ONE focused idea: e.g. context → main argument → implication. ' +
|
|
256
256
|
'Do NOT start consecutive paragraphs with the same word. Do NOT cut text short mid-sentence.',
|
|
257
257
|
)
|
|
258
|
-
.min(
|
|
258
|
+
.min(180)
|
|
259
259
|
.max(800),
|
|
260
260
|
version: z.literal(1),
|
|
261
261
|
}) satisfies z.ZodType<ITextSlideDataStructure>;
|
|
@@ -11,4 +11,5 @@ export enum VIDEO_GENERATION_STRATEGY {
|
|
|
11
11
|
WAN_2_6_VIDEO_GENERATION_CALLBACK = 'WAN_2_6_VIDEO_GENERATION_CALLBACK',
|
|
12
12
|
WAN_2_7_VIDEO_GENERATION_CALLBACK = 'WAN_2_7_VIDEO_GENERATION_CALLBACK',
|
|
13
13
|
GROK_VIDEO_GENERATION_CALLBACK = 'GROK_VIDEO_GENERATION_CALLBACK',
|
|
14
|
+
HAPPYHORSE_VIDEO_GENERATION_CALLBACK = 'HAPPYHORSE_VIDEO_GENERATION_CALLBACK',
|
|
14
15
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema, LocaleSchema } from '../../common';
|
|
3
3
|
import { WriterDocumentSchema } from '../models';
|
|
4
|
+
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
4
5
|
|
|
5
6
|
export namespace CreateWriterDocumentCommand {
|
|
6
7
|
export const RequestSchema = z.object({
|
|
7
|
-
locale: LocaleSchema,
|
|
8
|
+
locale: LocaleSchema.default(LOCALE.RU),
|
|
8
9
|
userId: z.string().uuid().nullable().optional(),
|
|
9
10
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
10
11
|
prompt: z.string(),
|