@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
package/src/utils/rigoActions.ts
CHANGED
|
@@ -847,11 +847,12 @@ type TAddInteractivityInputs = {
|
|
|
847
847
|
export const addInteractivity = async (
|
|
848
848
|
token: string,
|
|
849
849
|
inputs: TAddInteractivityInputs,
|
|
850
|
-
webhookUrl?: string
|
|
850
|
+
webhookUrl?: string,
|
|
851
|
+
templateSlug = "add-lesson-interactivy"
|
|
851
852
|
) => {
|
|
852
853
|
try {
|
|
853
854
|
const response = await axios.post(
|
|
854
|
-
`${RIGOBOT_HOST}/v1/prompting/completion
|
|
855
|
+
`${RIGOBOT_HOST}/v1/prompting/completion/${templateSlug}/`,
|
|
855
856
|
{
|
|
856
857
|
inputs,
|
|
857
858
|
include_purpose_objective: false,
|