@learnpack/learnpack 5.0.363 → 5.0.364
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/lib/commands/serve.js +444 -273
- package/lib/models/creator.d.ts +1 -0
- package/lib/utils/generationRetry.d.ts +48 -0
- package/lib/utils/generationRetry.js +81 -0
- package/lib/utils/interactivity/componentsGuide.d.ts +50 -0
- package/lib/utils/interactivity/componentsGuide.js +193 -0
- package/lib/utils/interactivity/interactivityPlan.d.ts +20 -0
- package/lib/utils/interactivity/interactivityPlan.js +33 -0
- package/lib/utils/interactivity/structuredComponents.d.ts +34 -0
- package/lib/utils/interactivity/structuredComponents.js +792 -0
- package/lib/utils/rigoActions.d.ts +1 -1
- package/lib/utils/rigoActions.js +2 -2
- package/package.json +1 -1
- package/src/commands/serve.ts +653 -388
- package/src/models/creator.ts +87 -84
- package/src/utils/generationRetry.ts +100 -0
- package/src/utils/interactivity/componentsGuide.ts +294 -0
- package/src/utils/interactivity/interactivityPlan.ts +57 -0
- package/src/utils/interactivity/structuredComponents.ts +1004 -0
- package/src/utils/rigoActions.ts +3 -2
|
@@ -167,7 +167,7 @@ type TAddInteractivityInputs = {
|
|
|
167
167
|
lesson_info: string;
|
|
168
168
|
current_syllabus: string;
|
|
169
169
|
};
|
|
170
|
-
export declare const addInteractivity: (token: string, inputs: TAddInteractivityInputs, webhookUrl?: string) => Promise<any>;
|
|
170
|
+
export declare const addInteractivity: (token: string, inputs: TAddInteractivityInputs, webhookUrl?: string, templateSlug?: string) => Promise<any>;
|
|
171
171
|
type TGenerateCodeChallengeInputs = {
|
|
172
172
|
lesson_content: string;
|
|
173
173
|
challenge_proposal: string;
|
package/lib/utils/rigoActions.js
CHANGED
|
@@ -479,9 +479,9 @@ const generateStepDescriptions = async (token, params, endpointSlug = "generate-
|
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
exports.generateStepDescriptions = generateStepDescriptions;
|
|
482
|
-
const addInteractivity = async (token, inputs, webhookUrl) => {
|
|
482
|
+
const addInteractivity = async (token, inputs, webhookUrl, templateSlug = "add-lesson-interactivy") => {
|
|
483
483
|
try {
|
|
484
|
-
const response = await axios_1.default.post(`${api_1.RIGOBOT_HOST}/v1/prompting/completion
|
|
484
|
+
const response = await axios_1.default.post(`${api_1.RIGOBOT_HOST}/v1/prompting/completion/${templateSlug}/`, {
|
|
485
485
|
inputs,
|
|
486
486
|
include_purpose_objective: false,
|
|
487
487
|
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.
|
|
4
|
+
"version": "5.0.364",
|
|
5
5
|
"author": "Alejandro Sanchez @alesanchezr",
|
|
6
6
|
"contributors": [
|
|
7
7
|
{
|