@learnpack/learnpack 5.0.323 → 5.0.324

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.
@@ -265,6 +265,7 @@ async function startInteractivityGeneration(rigoToken, steps, packageContext, ex
265
265
  initial_lesson: exercise.initialContent + `-${randomCacheEvict}`,
266
266
  output_language: packageContext.language || "en",
267
267
  current_syllabus: JSON.stringify(fullSyllabus),
268
+ lesson_info: JSON.stringify(lessonCleaner(exercise)),
268
269
  }, webhookUrl);
269
270
  return res.id;
270
271
  }
@@ -104,6 +104,7 @@ type TAddInteractivityInputs = {
104
104
  prev_lesson: string;
105
105
  initial_lesson: string;
106
106
  output_language: string;
107
+ lesson_info: string;
107
108
  current_syllabus: string;
108
109
  };
109
110
  export declare const addInteractivity: (token: string, inputs: TAddInteractivityInputs, webhookUrl?: string) => Promise<any>;
@@ -306,7 +306,7 @@ const initialContentGenerator = async (token, inputs, webhookUrl, endpointSlug =
306
306
  exports.initialContentGenerator = initialContentGenerator;
307
307
  const addInteractivity = async (token, inputs, webhookUrl) => {
308
308
  try {
309
- const response = await axios_1.default.post(`${api_1.RIGOBOT_HOST}/v1/prompting/completion/lesson-refiner/`, {
309
+ const response = await axios_1.default.post(`${api_1.RIGOBOT_HOST}/v1/prompting/completion/add-lesson-interactivy/`, {
310
310
  inputs,
311
311
  include_purpose_objective: false,
312
312
  execute_async: !!webhookUrl,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@learnpack/learnpack",
3
3
  "description": "Seamlessly build, sell and/or take interactive & auto-graded tutorials, start learning now or build a new tutorial to your audience.",
4
- "version": "5.0.323",
4
+ "version": "5.0.324",
5
5
  "author": "Alejandro Sanchez @alesanchezr",
6
6
  "contributors": [
7
7
  {
@@ -456,6 +456,7 @@ async function startInteractivityGeneration(
456
456
  initial_lesson: exercise.initialContent + `-${randomCacheEvict}`,
457
457
  output_language: packageContext.language || "en",
458
458
  current_syllabus: JSON.stringify(fullSyllabus),
459
+ lesson_info: JSON.stringify(lessonCleaner(exercise)),
459
460
  },
460
461
  webhookUrl
461
462
  )
@@ -2398,7 +2399,6 @@ export default class ServeCommand extends SessionCommand {
2398
2399
 
2399
2400
  await Promise.all(
2400
2401
  missingReadmeTranslations.map(async languageCode => {
2401
-
2402
2402
  await translateExercise(
2403
2403
  rigoToken,
2404
2404
  {
@@ -547,6 +547,7 @@ type TAddInteractivityInputs = {
547
547
  prev_lesson: string;
548
548
  initial_lesson: string;
549
549
  output_language: string;
550
+ lesson_info: string;
550
551
  current_syllabus: string;
551
552
  };
552
553
 
@@ -557,7 +558,7 @@ export const addInteractivity = async (
557
558
  ) => {
558
559
  try {
559
560
  const response = await axios.post(
560
- `${RIGOBOT_HOST}/v1/prompting/completion/lesson-refiner/`,
561
+ `${RIGOBOT_HOST}/v1/prompting/completion/add-lesson-interactivy/`,
561
562
  {
562
563
  inputs,
563
564
  include_purpose_objective: false,