@jutge.org/toolkit 4.4.31 → 4.4.32

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -817,7 +817,7 @@ If some function in the original program is not defined, do not define it in the
817
817
  Your program should start with a comment line saying 'Generated by ${$}'.
818
818
 
819
819
  ${D}
820
- `,J=B4(await Oq(q,$,"add-main-file",Y,P));await u8(w.directory,`main.${Ld[f]}`,J),u.success(`main.${f} created`),u.warning("Please review the generated file")})}async function eA(q,$,w,f,K){let z=tA.default.compile(f)({type:K});await u.section(`Generating test cases generator ${z}`,async()=>{let P=await UL6(w),D=lk(J8(),"assets","prompts","generators",`${K}.md`),Y=await j6(D),J=tA.default.compile(Y)({statement:P}),Z=B4(await Oq(q,$,"generate-test-cases-generator",J,J));await u8(w.directory,z,Z),u.success(`Test cases generator ${z} generated`),u.warning("Please review the generated test cases generator")})}async function UL6(q){let $=q.originalLanguage;if(!$)throw Error("Original language not set");if(await oL6(lk(q.directory,`problem.${$}.txt`)))return await o8(q.directory,`problem.${$}.txt`);else{let w=await o8(q.directory,`problem.${$}.tex`);return y8_(w)}}var Q2=new A6("generate").description("Generate problem elements using JutgeAI").action(()=>{Q2.help()});Q2.command("problem").description("Generate a problem with JutgeAI").summary(`Generate a problem with JutgeAI
820
+ `,J=B4(await Oq(q,$,"add-main-file",Y,P));await u8(w.directory,`main.${Ld[f]}`,J),u.success(`main.${f} created`),u.warning("Please review the generated file")})}async function eA(q,$,w,f,K){let z=tA.default.compile(f)({type:K});await u.section(`Generating test cases generator ${z}`,async()=>{let P=await UL6(w),D=lk(J8(),"assets","prompts","io","generators",`${K}.md`),Y=await j6(D),J=tA.default.compile(Y)({statement:P}),Z=B4(await Oq(q,$,"generate-test-cases-generator",J,J));await u8(w.directory,z,Z),u.success(`Test cases generator ${z} generated`),u.warning("Please review the generated test cases generator")})}async function UL6(q){let $=q.originalLanguage;if(!$)throw Error("Original language not set");if(await oL6(lk(q.directory,`problem.${$}.txt`)))return await o8(q.directory,`problem.${$}.txt`);else{let w=await o8(q.directory,`problem.${$}.tex`);return y8_(w)}}var Q2=new A6("generate").description("Generate problem elements using JutgeAI").action(()=>{Q2.help()});Q2.command("problem").description("Generate a problem with JutgeAI").summary(`Generate a problem with JutgeAI
821
821
 
822
822
  Use this command to generate a problem with JutgeAI from a specification.
823
823
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jutge.org/toolkit",
3
3
  "description": "Toolkit to prepare problems for Jutge.org",
4
- "version": "4.4.31",
4
+ "version": "4.4.32",
5
5
  "homepage": "https://jutge.org",
6
6
  "author": {
7
7
  "name": "Jutge.org",