@exercode/problem-utils
Advanced tools
@@ -1,2 +0,2 @@ | ||
| import{asyncToGenerator as e,regenerator as r,createForOfIteratorHelper as t,objectSpread2 as n}from"../_virtual/_rollupPluginBabelHelpers.js";import s from"node:fs";import a from"node:path";import{z as i}from"zod";import{cleanWorkingDirectory as o,snapshotWorkingDirectory as d}from"../helpers/cleanWorkingDirectory.js";import{compareStdoutAsSpaceSeparatedTokens as u}from"../helpers/compareStdoutAsSpaceSeparatedTokens.js";import{copyTestCaseFileInput as l}from"../helpers/copyTestCaseFileInput.js";import{findEntryPointFile as c}from"../helpers/findEntryPointFile.js";import{findLanguageDefinitionByPath as p}from"../helpers/findLanguageDefinitionByPath.js";import{judgeByStaticAnalysis as m}from"../helpers/judgeByStaticAnalysis.js";import{parseArgs as E}from"../helpers/parseArgs.js";import{printTestCaseResult as I}from"../helpers/printTestCaseResult.js";import{readOutputFiles as f}from"../helpers/readOutputFiles.js";import{readProblemMarkdownFrontMatter as b}from"../helpers/readProblemMarkdownFrontMatter.js";import{readTestCases as C}from"../helpers/readTestCases.js";import{spawnSyncWithTimeout as g}from"../helpers/spawnSyncWithTimeout.js";import{DecisionCode as _}from"../types/decisionCode.js";var R=5e4,v=i.object({language:i.union([i.string(),i.array(i.string())]).optional()}),h=v.extend({stdin:i.string().optional()});function S(e){return T.apply(this,arguments)}function T(){return(T=e(r().m(function e(i){var h,S,T,D,O,k,y,P,L,M,U,w,B,N,F,j,A,W,G,X,x,q,Q,Y,Z,H,V,z,J,K,$,ee,re,te,ne,se,ae,ie,oe,de,ue,le,ce,pe,me,Ee,Ie,fe,be,Ce,ge,_e,Re;return r().w(function(e){for(;;)switch(e.p=e.n){case 0:return h=E(process.argv),S=v.parse(h.params),e.n=1,b(i);case 1:return T=e.v,e.n=2,C(a.join(i,"test_cases"));case 2:return D=e.v,e.n=3,m(h.cwd,T);case 3:if(!(O=e.v)){e.n=4;break}return I(n({testCaseId:null!=(k=null==(y=D[0])?void 0:y.id)?k:"prebuild"},O)),e.a(2);case 4:return e.n=5,c(h.cwd,S.language);case 5:if(P=e.v){e.n=6;break}return I({testCaseId:null!=(L=null==(M=D[0])?void 0:M.id)?L:"prebuild",decisionCode:_.MISSING_REQUIRED_SUBMISSION_FILE_ERROR,stderr:"main file not found".concat(S.language?": language: ".concat(S.language):"")}),e.a(2);case 6:if(U=p(P)){e.n=7;break}return I({testCaseId:null!=(w=null==(B=D[0])?void 0:B.id)?w:"prebuild",decisionCode:_.WRONG_ANSWER,stderr:"unsupported language"}),e.a(2);case 7:if(N=n(n({},process.env),{},{CI:"",FORCE_COLOR:"0"}),!U.prebuild){e.n=12;break}return e.p=8,e.n=9,U.prebuild(h.cwd);case 9:return e.n=10,c(h.cwd,S.language);case 10:F=e.v,e.n=12;break;case 11:return e.p=11,be=e.v,console.error("prebuild error",be),I({testCaseId:null!=(j=null==(A=D[0])?void 0:A.id)?j:"prebuild",decisionCode:_.BUILD_ERROR,stderr:be instanceof Error?be.message:String(be)}),e.a(2);case 12:if(W=null!=F?F:P,!U.buildCommand){e.n=16;break}if(e.p=13,G=U.buildCommand(W),X=g(G[0],G.slice(1),{cwd:h.cwd,encoding:"utf8",env:N},10),x=_.ACCEPTED,0!==X.status?x=_.BUILD_ERROR:X.timeSeconds>10?x=_.BUILD_TIME_LIMIT_EXCEEDED:(X.stdout.length>R||X.stderr.length>R)&&(x=_.BUILD_OUTPUT_SIZE_LIMIT_EXCEEDED),x===_.ACCEPTED){e.n=14;break}return I({testCaseId:null!=(q=null==(Q=D[0])?void 0:Q.id)?q:"build",decisionCode:x,exitStatus:null!=(Y=X.status)?Y:void 0,stdout:X.stdout.slice(0,R)||void 0,stderr:X.stderr.slice(0,R)||void 0,timeSeconds:X.timeSeconds,memoryBytes:X.memoryBytes}),e.a(2);case 14:e.n=16;break;case 15:return e.p=15,Ce=e.v,console.error("build error",Ce),I({testCaseId:null!=(Z=null==(H=D[0])?void 0:H.id)?Z:"build",decisionCode:_.BUILD_ERROR,stderr:Ce instanceof Error?Ce.message:String(Ce)}),e.a(2);case 16:return e.n=17,d(h.cwd);case 17:V=e.v,0===D.length&&I({testCaseId:"default",decisionCode:_.ACCEPTED}),z=t(D),e.p=18,z.s();case 19:if((J=z.n()).done){e.n=44;break}if(ae=J.value,null==(K=D.shared)||!K.fileInputPath){e.n=20;break}return e.n=20,l(D.shared.fileInputPath,h.cwd);case 20:if(!ae.fileInputPath){e.n=21;break}return e.n=21,l(ae.fileInputPath,h.cwd);case 21:return ie="number"==typeof T.timeLimitMs?T.timeLimitMs/1e3:2,oe=U.command(W),de=g(oe[0],oe.slice(1),{cwd:h.cwd,encoding:"utf8",input:ae.input,env:N},ie),e.n=22,f(h.cwd,null!=($=T.requiredOutputFilePaths)?$:[]);case 22:if(ue=e.v,le=_.ACCEPTED,0===de.status){e.n=23;break}le=_.RUNTIME_ERROR,e.n=41;break;case 23:if(!(de.timeSeconds>ie)){e.n=24;break}le=_.TIME_LIMIT_EXCEEDED,e.n=41;break;case 24:if(!(de.memoryBytes>(null!=(ee=T.memoryLimitByte)?ee:Number.POSITIVE_INFINITY))){e.n=25;break}le=_.MEMORY_LIMIT_EXCEEDED,e.n=41;break;case 25:if(!(de.stdout.length>R||de.stderr.length>R)){e.n=26;break}le=_.OUTPUT_SIZE_LIMIT_EXCEEDED,e.n=41;break;case 26:if(!(ue.length<(null!=(re=null==(te=T.requiredOutputFilePaths)?void 0:te.length)?re:0))){e.n=27;break}le=_.MISSING_REQUIRED_OUTPUT_FILE_ERROR,e.n=41;break;case 27:if(u(de.stdout,null!=(ne=ae.output)?ne:"")){e.n=28;break}le=_.WRONG_ANSWER,e.n=41;break;case 28:if(!ae.fileOutputPath){e.n=41;break}return e.n=29,s.promises.readdir(ae.fileOutputPath,{withFileTypes:!0,recursive:!0});case 29:ce=e.v,pe=t(ce),e.p=30,pe.s();case 31:if((me=pe.n()).done){e.n=38;break}if((Ee=me.value).isFile()){e.n=32;break}return e.a(3,37);case 32:return Ie=a.relative(ae.fileOutputPath,Ee.parentPath),e.n=33,s.promises.readFile(a.join(Ee.parentPath,Ee.name));case 33:return fe=e.v,e.p=34,e.n=35,s.promises.readFile(a.join(h.cwd,Ie,Ee.name));case 35:0!==e.v.compare(fe)&&(le=_.WRONG_ANSWER),e.n=37;break;case 36:e.p=36,ge=e.v,console.error(ge),le=_.WRONG_ANSWER;case 37:e.n=31;break;case 38:e.n=40;break;case 39:e.p=39,_e=e.v,pe.e(_e);case 40:return e.p=40,pe.f(),e.f(40);case 41:return I({testCaseId:ae.id,decisionCode:le,exitStatus:null!=(se=de.status)?se:void 0,stdin:ae.input,stdout:de.stdout.slice(0,R)||void 0,stderr:de.stderr.slice(0,R)||void 0,timeSeconds:de.timeSeconds,memoryBytes:de.memoryBytes,outputFiles:ue.length>0?ue:void 0}),e.n=42,o(h.cwd,V);case 42:if(le===_.ACCEPTED){e.n=43;break}return e.a(3,44);case 43:e.n=19;break;case 44:e.n=46;break;case 45:e.p=45,Re=e.v,z.e(Re);case 46:return e.p=46,z.f(),e.f(46);case 47:return e.a(2)}},e,null,[[34,36],[30,39,40,41],[18,45,46,47],[13,15],[8,11]])}))).apply(this,arguments)}function D(e){return O.apply(this,arguments)}function O(){return(O=e(r().m(function e(t){var s,a,i,o,d,u,l,m,C,v,S,T,D,O,k,y,P,L,M,U,w,B,N,F,j;return r().w(function(e){for(;;)switch(e.p=e.n){case 0:return s=E(process.argv),a=h.parse(s.params),e.n=1,b(t);case 1:return i=e.v,e.n=2,c(s.cwd,a.language);case 2:if(o=e.v){e.n=3;break}return I({testCaseId:"prebuild",decisionCode:_.MISSING_REQUIRED_SUBMISSION_FILE_ERROR,stderr:"main file not found".concat(a.language?": language: ".concat(a.language):"")}),e.a(2);case 3:if(d=p(o)){e.n=4;break}return I({testCaseId:"prebuild",decisionCode:_.WRONG_ANSWER,stderr:"unsupported language"}),e.a(2);case 4:if(u=n(n({},process.env),{},{CI:"",FORCE_COLOR:"0"}),!d.prebuild){e.n=9;break}return e.p=5,e.n=6,d.prebuild(s.cwd);case 6:return e.n=7,c(s.cwd,a.language);case 7:l=e.v,e.n=9;break;case 8:return e.p=8,F=e.v,console.error("prebuild error",F),I({testCaseId:"prebuild",decisionCode:_.BUILD_ERROR,stderr:F instanceof Error?F.message:String(F)}),e.a(2);case 9:if(m=null!=l?l:o,!d.buildCommand){e.n=13;break}if(e.p=10,C=d.buildCommand(m),v=g(C[0],C.slice(1),{cwd:s.cwd,encoding:"utf8",env:u},10),S=_.ACCEPTED,0!==v.status?S=_.BUILD_ERROR:v.timeSeconds>10?S=_.BUILD_TIME_LIMIT_EXCEEDED:(v.stdout.length>R||v.stderr.length>R)&&(S=_.BUILD_OUTPUT_SIZE_LIMIT_EXCEEDED),S===_.ACCEPTED){e.n=11;break}return I({testCaseId:"build",decisionCode:S,exitStatus:null!=(T=v.status)?T:void 0,stdout:v.stdout.slice(0,R)||void 0,stderr:v.stderr.slice(0,R)||void 0,timeSeconds:v.timeSeconds,memoryBytes:v.memoryBytes}),e.a(2);case 11:e.n=13;break;case 12:return e.p=12,j=e.v,console.error("build error",j),I({testCaseId:"build",decisionCode:_.BUILD_ERROR,stderr:j instanceof Error?j.message:String(j)}),e.a(2);case 13:return M=Math.max(10,(null!=(D=i.timeLimitMs)?D:0)/1e3),U=d.command(m),w=g(U[0],U.slice(1),{cwd:s.cwd,encoding:"utf8",input:a.stdin,env:u},M),e.n=14,f(s.cwd,null!=(O=i.requiredOutputFilePaths)?O:[]);case 14:B=e.v,N=_.ACCEPTED,0!==w.status?N=_.RUNTIME_ERROR:w.timeSeconds>M?N=_.TIME_LIMIT_EXCEEDED:w.memoryBytes>(null!=(k=i.memoryLimitByte)?k:Number.POSITIVE_INFINITY)?N=_.MEMORY_LIMIT_EXCEEDED:w.stdout.length>R||w.stderr.length>R?N=_.OUTPUT_SIZE_LIMIT_EXCEEDED:B.length<(null!=(y=null==(P=i.requiredOutputFilePaths)?void 0:P.length)?y:0)&&(N=_.MISSING_REQUIRED_OUTPUT_FILE_ERROR),I({testCaseId:"debug",decisionCode:N,exitStatus:null!=(L=w.status)?L:void 0,stdin:a.stdin,stdout:w.stdout.slice(0,R)||void 0,stderr:w.stderr.slice(0,R)||void 0,timeSeconds:w.timeSeconds,memoryBytes:w.memoryBytes,outputFiles:B.length>0?B:void 0});case 15:return e.a(2)}},e,null,[[10,12],[5,8]])}))).apply(this,arguments)}export{D as stdioDebugPreset,S as stdioJudgePreset}; | ||
| import{asyncToGenerator as e,regenerator as r,objectSpread2 as t,createForOfIteratorHelper as n}from"../_virtual/_rollupPluginBabelHelpers.js";import s from"node:fs";import a from"node:path";import{z as i}from"zod";import{cleanWorkingDirectory as o,snapshotWorkingDirectory as d}from"../helpers/cleanWorkingDirectory.js";import{compareStdoutAsSpaceSeparatedTokens as u}from"../helpers/compareStdoutAsSpaceSeparatedTokens.js";import{copyTestCaseFileInput as l}from"../helpers/copyTestCaseFileInput.js";import{findEntryPointFile as c}from"../helpers/findEntryPointFile.js";import{findLanguageDefinitionByPath as p}from"../helpers/findLanguageDefinitionByPath.js";import{judgeByStaticAnalysis as m}from"../helpers/judgeByStaticAnalysis.js";import{parseArgs as E}from"../helpers/parseArgs.js";import{printTestCaseResult as I}from"../helpers/printTestCaseResult.js";import{readOutputFiles as f}from"../helpers/readOutputFiles.js";import{readProblemMarkdownFrontMatter as b}from"../helpers/readProblemMarkdownFrontMatter.js";import{readTestCases as C}from"../helpers/readTestCases.js";import{spawnSyncWithTimeout as g}from"../helpers/spawnSyncWithTimeout.js";import{DecisionCode as _}from"../types/decisionCode.js";var R=5e4,v=i.object({language:i.union([i.string(),i.array(i.string())]).optional()}),h=v.extend({stdin:i.string().optional()});function S(e){return T.apply(this,arguments)}function T(){return(T=e(r().m(function e(i){var h,S,T,D,O,k,y,P,L,M,U,w,B,N,F,j,A,W,G,X,x,q,Q,Y,Z,H,V,z,J,K,$,ee,re,te,ne,se,ae,ie,oe,de,ue,le,ce,pe,me,Ee,Ie,fe,be,Ce,ge,_e,Re;return r().w(function(e){for(;;)switch(e.p=e.n){case 0:return h=E(process.argv),S=v.parse(h.params),e.n=1,b(i);case 1:return T=e.v,e.n=2,C(a.join(i,"test_cases"));case 2:return D=e.v,e.n=3,m(h.cwd,T);case 3:if(!(O=e.v)){e.n=4;break}return I(t({testCaseId:null!=(k=null==(y=D[0])?void 0:y.id)?k:"prebuild"},O)),e.a(2);case 4:return e.n=5,c(h.cwd,S.language);case 5:if(P=e.v){e.n=6;break}return I({testCaseId:null!=(L=null==(M=D[0])?void 0:M.id)?L:"prebuild",decisionCode:_.MISSING_REQUIRED_SUBMISSION_FILE_ERROR,stderr:"main file not found".concat(S.language?": language: ".concat(S.language):"")}),e.a(2);case 6:if(U=p(P)){e.n=7;break}return I({testCaseId:null!=(w=null==(B=D[0])?void 0:B.id)?w:"prebuild",decisionCode:_.WRONG_ANSWER,stderr:"unsupported language"}),e.a(2);case 7:if(N=t(t({},process.env),{},{CI:"",FORCE_COLOR:"0"}),!U.prebuild){e.n=12;break}return e.p=8,e.n=9,U.prebuild(h.cwd);case 9:return e.n=10,c(h.cwd,S.language);case 10:F=e.v,e.n=12;break;case 11:return e.p=11,be=e.v,console.error("prebuild error",be),I({testCaseId:null!=(j=null==(A=D[0])?void 0:A.id)?j:"prebuild",decisionCode:_.BUILD_ERROR,stderr:be instanceof Error?be.message:String(be)}),e.a(2);case 12:if(W=null!=F?F:P,!U.buildCommand){e.n=16;break}if(e.p=13,G=U.buildCommand(W),X=g(G[0],G.slice(1),{cwd:h.cwd,encoding:"utf8",env:N},10),x=_.ACCEPTED,0!==X.status?x=_.BUILD_ERROR:X.timeSeconds>10?x=_.BUILD_TIME_LIMIT_EXCEEDED:(X.stdout.length>R||X.stderr.length>R)&&(x=_.BUILD_OUTPUT_SIZE_LIMIT_EXCEEDED),x===_.ACCEPTED){e.n=14;break}return I({testCaseId:null!=(q=null==(Q=D[0])?void 0:Q.id)?q:"build",decisionCode:x,exitStatus:null!=(Y=X.status)?Y:void 0,stdout:X.stdout.slice(0,R)||void 0,stderr:X.stderr.slice(0,R)||void 0,timeSeconds:X.timeSeconds,memoryBytes:X.memoryBytes}),e.a(2);case 14:e.n=16;break;case 15:return e.p=15,Ce=e.v,console.error("build error",Ce),I({testCaseId:null!=(Z=null==(H=D[0])?void 0:H.id)?Z:"build",decisionCode:_.BUILD_ERROR,stderr:Ce instanceof Error?Ce.message:String(Ce)}),e.a(2);case 16:return e.n=17,d(h.cwd);case 17:V=e.v,0===D.length&&I({testCaseId:"default",decisionCode:_.ACCEPTED}),z=n(D),e.p=18,z.s();case 19:if((J=z.n()).done){e.n=44;break}if(ae=J.value,null==(K=D.shared)||!K.fileInputPath){e.n=20;break}return e.n=20,l(D.shared.fileInputPath,h.cwd);case 20:if(!ae.fileInputPath){e.n=21;break}return e.n=21,l(ae.fileInputPath,h.cwd);case 21:return ie="number"==typeof T.timeLimitMs?T.timeLimitMs/1e3:2,oe=U.command(W),de=g(oe[0],oe.slice(1),{cwd:h.cwd,encoding:"utf8",input:ae.input,env:N},ie),e.n=22,f(h.cwd,null!=($=T.requiredOutputFilePaths)?$:[]);case 22:if(ue=e.v,le=_.ACCEPTED,0===de.status){e.n=23;break}le=_.RUNTIME_ERROR,e.n=41;break;case 23:if(!(de.timeSeconds>ie)){e.n=24;break}le=_.TIME_LIMIT_EXCEEDED,e.n=41;break;case 24:if(!(de.memoryBytes>(null!=(ee=T.memoryLimitByte)?ee:Number.POSITIVE_INFINITY))){e.n=25;break}le=_.MEMORY_LIMIT_EXCEEDED,e.n=41;break;case 25:if(!(de.stdout.length>R||de.stderr.length>R)){e.n=26;break}le=_.OUTPUT_SIZE_LIMIT_EXCEEDED,e.n=41;break;case 26:if(!(ue.length<(null!=(re=null==(te=T.requiredOutputFilePaths)?void 0:te.length)?re:0))){e.n=27;break}le=_.MISSING_REQUIRED_OUTPUT_FILE_ERROR,e.n=41;break;case 27:if(u(de.stdout,null!=(ne=ae.output)?ne:"")){e.n=28;break}le=_.WRONG_ANSWER,e.n=41;break;case 28:if(!ae.fileOutputPath){e.n=41;break}return e.n=29,s.promises.readdir(ae.fileOutputPath,{withFileTypes:!0,recursive:!0});case 29:ce=e.v,pe=n(ce),e.p=30,pe.s();case 31:if((me=pe.n()).done){e.n=38;break}if((Ee=me.value).isFile()){e.n=32;break}return e.a(3,37);case 32:return Ie=a.relative(ae.fileOutputPath,Ee.parentPath),e.n=33,s.promises.readFile(a.join(Ee.parentPath,Ee.name));case 33:return fe=e.v,e.p=34,e.n=35,s.promises.readFile(a.join(h.cwd,Ie,Ee.name));case 35:0!==e.v.compare(fe)&&(le=_.WRONG_ANSWER),e.n=37;break;case 36:e.p=36,ge=e.v,console.error(ge),le=_.WRONG_ANSWER;case 37:e.n=31;break;case 38:e.n=40;break;case 39:e.p=39,_e=e.v,pe.e(_e);case 40:return e.p=40,pe.f(),e.f(40);case 41:return I({testCaseId:ae.id,decisionCode:le,exitStatus:null!=(se=de.status)?se:void 0,stdin:ae.input,stdout:de.stdout.slice(0,R)||void 0,stderr:de.stderr.slice(0,R)||void 0,timeSeconds:de.timeSeconds,memoryBytes:de.memoryBytes,outputFiles:ue.length>0?ue:void 0}),e.n=42,o(h.cwd,V);case 42:if(le===_.ACCEPTED){e.n=43;break}return e.a(3,44);case 43:e.n=19;break;case 44:e.n=46;break;case 45:e.p=45,Re=e.v,z.e(Re);case 46:return e.p=46,z.f(),e.f(46);case 47:return e.a(2)}},e,null,[[34,36],[30,39,40,41],[18,45,46,47],[13,15],[8,11]])}))).apply(this,arguments)}function D(e){return O.apply(this,arguments)}function O(){return(O=e(r().m(function e(n){var s,a,i,o,d,u,l,m,C,v,S,T,D,O,k,y,P,L,M,U,w,B,N,F,j;return r().w(function(e){for(;;)switch(e.p=e.n){case 0:return s=E(process.argv),a=h.parse(s.params),e.n=1,b(n);case 1:return i=e.v,e.n=2,c(s.cwd,a.language);case 2:if(o=e.v){e.n=3;break}return I({testCaseId:"prebuild",decisionCode:_.MISSING_REQUIRED_SUBMISSION_FILE_ERROR,stderr:"main file not found".concat(a.language?": language: ".concat(a.language):"")}),e.a(2);case 3:if(d=p(o)){e.n=4;break}return I({testCaseId:"prebuild",decisionCode:_.WRONG_ANSWER,stderr:"unsupported language"}),e.a(2);case 4:if(u=t(t({},process.env),{},{CI:"",FORCE_COLOR:"0"}),!d.prebuild){e.n=9;break}return e.p=5,e.n=6,d.prebuild(s.cwd);case 6:return e.n=7,c(s.cwd,a.language);case 7:l=e.v,e.n=9;break;case 8:return e.p=8,F=e.v,console.error("prebuild error",F),I({testCaseId:"prebuild",decisionCode:_.BUILD_ERROR,stderr:F instanceof Error?F.message:String(F)}),e.a(2);case 9:if(m=null!=l?l:o,!d.buildCommand){e.n=13;break}if(e.p=10,C=d.buildCommand(m),v=g(C[0],C.slice(1),{cwd:s.cwd,encoding:"utf8",env:u},10),S=_.ACCEPTED,0!==v.status?S=_.BUILD_ERROR:v.timeSeconds>10?S=_.BUILD_TIME_LIMIT_EXCEEDED:(v.stdout.length>R||v.stderr.length>R)&&(S=_.BUILD_OUTPUT_SIZE_LIMIT_EXCEEDED),S===_.ACCEPTED){e.n=11;break}return I({testCaseId:"build",decisionCode:S,exitStatus:null!=(T=v.status)?T:void 0,stdout:v.stdout.slice(0,R)||void 0,stderr:v.stderr.slice(0,R)||void 0,timeSeconds:v.timeSeconds,memoryBytes:v.memoryBytes}),e.a(2);case 11:e.n=13;break;case 12:return e.p=12,j=e.v,console.error("build error",j),I({testCaseId:"build",decisionCode:_.BUILD_ERROR,stderr:j instanceof Error?j.message:String(j)}),e.a(2);case 13:return M=Math.max(10,(null!=(D=i.timeLimitMs)?D:0)/1e3),U=d.command(m),w=g(U[0],U.slice(1),{cwd:s.cwd,encoding:"utf8",input:a.stdin,env:u},M),e.n=14,f(s.cwd,null!=(O=i.requiredOutputFilePaths)?O:[]);case 14:B=e.v,N=_.ACCEPTED,0!==w.status?N=_.RUNTIME_ERROR:w.timeSeconds>M?N=_.TIME_LIMIT_EXCEEDED:w.memoryBytes>(null!=(k=i.memoryLimitByte)?k:Number.POSITIVE_INFINITY)?N=_.MEMORY_LIMIT_EXCEEDED:w.stdout.length>R||w.stderr.length>R?N=_.OUTPUT_SIZE_LIMIT_EXCEEDED:B.length<(null!=(y=null==(P=i.requiredOutputFilePaths)?void 0:P.length)?y:0)&&(N=_.MISSING_REQUIRED_OUTPUT_FILE_ERROR),I({testCaseId:"debug",decisionCode:N,exitStatus:null!=(L=w.status)?L:void 0,stdin:a.stdin,stdout:w.stdout.slice(0,R)||void 0,stderr:w.stderr.slice(0,R)||void 0,timeSeconds:w.timeSeconds,memoryBytes:w.memoryBytes,outputFiles:B.length>0?B:void 0});case 15:return e.a(2)}},e,null,[[10,12],[5,8]])}))).apply(this,arguments)}export{D as stdioDebugPreset,S as stdioJudgePreset}; | ||
| //# sourceMappingURL=stdio.js.map |
+11
-11
| { | ||
| "name": "@exercode/problem-utils", | ||
| "version": "1.7.7", | ||
| "version": "1.7.8", | ||
| "description": ":100: A set of utilities for judging programs on Exercode (https://exercode.willbooster.com/).", | ||
@@ -52,7 +52,7 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@ai-sdk/amazon-bedrock": "4.0.30", | ||
| "@ai-sdk/google": "3.0.13", | ||
| "@ai-sdk/openai": "3.0.19", | ||
| "@ai-sdk/xai": "3.0.34", | ||
| "ai": "6.0.49", | ||
| "@ai-sdk/amazon-bedrock": "4.0.46", | ||
| "@ai-sdk/google": "3.0.20", | ||
| "@ai-sdk/openai": "3.0.25", | ||
| "@ai-sdk/xai": "3.0.46", | ||
| "ai": "6.0.67", | ||
| "front-matter": "4.0.2", | ||
@@ -67,3 +67,3 @@ "zod": "4.3.6" | ||
| "@willbooster/prettier-config": "10.2.4", | ||
| "build-ts": "17.0.16", | ||
| "build-ts": "17.0.17", | ||
| "conventional-changelog-conventionalcommits": "9.1.0", | ||
@@ -80,3 +80,3 @@ "dotenv-cli": "11.0.0", | ||
| "eslint-plugin-unused-imports": "4.3.0", | ||
| "globals": "17.1.0", | ||
| "globals": "17.3.0", | ||
| "husky": "9.1.7", | ||
@@ -88,7 +88,7 @@ "lint-staged": "16.2.7", | ||
| "prettier-plugin-java": "2.8.1", | ||
| "puppeteer": "24.36.0", | ||
| "semantic-release": "25.0.2", | ||
| "puppeteer": "24.36.1", | ||
| "semantic-release": "25.0.3", | ||
| "sort-package-json": "3.6.1", | ||
| "typescript": "5.9.3", | ||
| "typescript-eslint": "8.53.1", | ||
| "typescript-eslint": "8.54.0", | ||
| "vitest": "4.0.18" | ||
@@ -95,0 +95,0 @@ }, |
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated