@profoundlogic/codermake 3.1.1 → 3.1.3
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/README.md +41 -0
- package/dist/bin/index.js +1 -1
- package/dist/bin/preprocess-rpg-copy.js +1 -1
- package/dist/bin/rdf-to-dds.js +1 -1
- package/dist/lib/config.js +1 -1
- package/dist/lib/discovery.js +1 -1
- package/dist/lib/ejs-to-dds.js +1 -1
- package/dist/lib/ent.js +1 -0
- package/dist/lib/executor.js +1 -1
- package/dist/lib/flv.js +1 -0
- package/dist/lib/generate-rdf-dds.js +1 -1
- package/dist/lib/license.js +1 -1
- package/dist/lib/makefile-generator.js +1 -1
- package/dist/lib/platform.js +1 -1
- package/dist/lib/preprocessor.js +1 -1
- package/dist/lib/rdf-to-post-data.js +1 -1
- package/dist/lib/rpg-copy-preprocessor.js +1 -1
- package/dist/lib/ssh.js +1 -1
- package/dist/lib/target-listing.js +1 -1
- package/dist/lib/writer.js +1 -1
- package/dist/makefiles/ibmi.mk +1 -1
- package/dist/makefiles/unix.mk +1 -1
- package/package.json +2 -2
- package/skills/codermake/SKILL.md +31 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1a954f,_0x40e431){const _0x153698=_0x36d3,_0x3d61da=_0x1a954f();while(!![]){try{const _0x3c659f=parseInt(_0x153698(0xed))/0x1*(-parseInt(_0x153698(0xe7))/0x2)+-parseInt(_0x153698(0x107))/0x3*(-parseInt(_0x153698(0x10b))/0x4)+-parseInt(_0x153698(0x100))/0x5*(-parseInt(_0x153698(0x11b))/0x6)+parseInt(_0x153698(0xec))/0x7+-parseInt(_0x153698(0x12f))/0x8*(-parseInt(_0x153698(0xf2))/0x9)+parseInt(_0x153698(0x120))/0xa+parseInt(_0x153698(0x10c))/0xb*(-parseInt(_0x153698(0x11f))/0xc);if(_0x3c659f===_0x40e431)break;else _0x3d61da['push'](_0x3d61da['shift']());}catch(_0x552b96){_0x3d61da['push'](_0x3d61da['shift']());}}}(_0x104a,0xf1b67));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';export function detectFormat(_0x59fb97){const _0x4310de=_0x36d3,_0x246fa3={};_0x246fa3['cOkzo']=_0x4310de(0x106);const _0x22b438=_0x246fa3;if(/^\*\*free$/i[_0x4310de(0xf6)](_0x59fb97[_0x4310de(0xf3)]()))return _0x4310de(0x111);return _0x22b438[_0x4310de(0x11d)];}function _0x104a(){const _0x196bce=['u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','jYbMB3vUzcbPBIbTDwX0AxbSzsbSAwjYyxjPzxm6ia','lYaODhjPzwqGlNjWz2XLlcaUC3fSCNbNBguP','A1nHuhi','igLUia','mZjey0XLtfC','BMvAvKC','BwvTyMvY','y2XkyuW','yu1tt3a','yw5wteu','zxjYB3i','C1vzs2q','BwvTyMvYtMfTzq','wxjjAue','B3bLCMfUza','EwrQvKW','BwvZC2fNzq','v25qAwq','jdfgAwXLoIa','mLvgshDWwq','zMLUza','BgLICMfYEq','DhLWzq','CMvZDwX0','mteYodG2oujvqvfquG','mtyWodu1n09lvM96yG','Aw5JBhvKzxm','lNnXBhjWz2XL','zMLSzu5HBwu','CxjWz2XLC3jJ','mZe3odG5v0DiAwDk','DhjPBuvUza','ChvZAa','A2v5D29Yza','DgvZDa','vNHvz3i','DhjPBq','DhjPBvn0yxj0','AwzZ','icbeAxjLy3rPDMu6ia','D3zouw8','Aw5KzxG','C291CMnLuM9VDa','C3rHCNrZv2L0Aa','mJq1me5orufuyW','Aw5KzxHpzG','uM9zr2S','CMvJDxjZAxzL','Bwf0y2G','sMzkuhu','zML4zwq','m0TSEgLmta','Cer0zxm','wKzmu1C','BwfW','mJq3nJa3nK9uyvjyBq','mJq3nJq2m3HUuwzssW','icbgAwXLoIbSAw5Lia','C3bSAxq','icHSB29RAw5NigzVCIaN','AM9PBG','zNjLzq','s2jfrfG','yM9Ws2i','C2rcvMO','l3fYCgDSzxnYyW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','C3vIC3rYAw5N','lIbvC2LUzYa','q1bOtwS','EgrOsu8','mtK0mJHWwg92swe','Dg9mB3DLCKnHC2u','y09REM8','lIbtzxqGq09ervjnquTfx0Loq0XvrevFuefuscb0BYbJB250CM9SihnLyxjJAcbVCMrLCI4','mtjRrhbYswe','mZe1ntu1mefMs2D4tW','D1LMueS','vvrYzg4','y29UDgvUDa','EuXtqMe','v2fYBMLUzZOGtwvTyMvYicC','BgLIrgLY','BgvUz3rO','CxPtDvm','Bw9KAwzPzwq'];_0x104a=function(){return _0x196bce;};return _0x104a();}export function extractDirective(_0x4d917b,_0x1df104){const _0x584610=_0x36d3,_0x558d7a={};_0x558d7a[_0x584610(0xe3)]=function(_0x4f3623,_0x29ecde){return _0x4f3623===_0x29ecde;},_0x558d7a[_0x584610(0x109)]='free',_0x558d7a[_0x584610(0x119)]=function(_0x46f4bc,_0xca03c9){return _0x46f4bc-_0xca03c9;},_0x558d7a[_0x584610(0x121)]=function(_0xac189b,_0x344a40){return _0xac189b+_0x344a40;},_0x558d7a[_0x584610(0x113)]=function(_0x356439,_0x3bbf89){return _0x356439<_0x3bbf89;},_0x558d7a['qHweP']=function(_0x4793b3,_0x4587bd){return _0x4793b3+_0x4587bd;};const _0x584390=_0x558d7a;let _0x116602,_0x4afb8d;if(_0x584390[_0x584610(0xe3)](_0x1df104,_0x584390[_0x584610(0x109)])){const _0x2705b8=_0x4d917b['match'](/^\s*\/(copy|include) (\S)/i);if(!_0x2705b8)return null;const _0x84451a=_0x4d917b[_0x584610(0xf9)]();if(_0x84451a[_0x584610(0xff)]('//'))return null;_0x116602=_0x2705b8[0x1][_0x584610(0x11c)](),_0x4afb8d=_0x4d917b[_0x584610(0x117)](_0x584390[_0x584610(0x119)](_0x584390[_0x584610(0x121)](_0x2705b8[_0x584610(0xfd)],_0x2705b8[0x0][_0x584610(0x127)]),0x1));}else{if(_0x584390['bopKb'](_0x4d917b[_0x584610(0x127)],0x7))return null;if(_0x4d917b[0x6]!=='/')return null;const _0x1ebf71=_0x4d917b['substring'](0x7),_0xb9daea=_0x1ebf71[_0x584610(0x104)](/^(copy|include) (\S)/i);if(!_0xb9daea)return null;_0x116602=_0xb9daea[0x1]['toLowerCase'](),_0x4afb8d=_0x1ebf71[_0x584610(0x117)](_0xb9daea[0x0][_0x584610(0x127)]-0x1);}let _0x3f3e8c;if(_0x4afb8d['startsWith']('\x27')){const _0x272407=_0x4afb8d[_0x584610(0x101)]('\x27',0x1);_0x3f3e8c=_0x272407===-0x1?_0x4afb8d[_0x584610(0xf8)]():_0x4afb8d[_0x584610(0x117)](0x0,_0x272407+0x1);}else{if(_0x4afb8d['startsWith']('\x22')){const _0x13432c=_0x4afb8d[_0x584610(0x101)]('\x22',0x1);_0x3f3e8c=_0x584390[_0x584610(0xe3)](_0x13432c,-0x1)?_0x4afb8d[_0x584610(0xf8)]():_0x4afb8d[_0x584610(0x117)](0x0,_0x584390['qHweP'](_0x13432c,0x1));}else _0x3f3e8c=_0x4afb8d[_0x584610(0x10e)](/\s/)[0x0];}const _0x767310={};return _0x767310[_0x584610(0xf5)]=_0x116602,_0x767310[_0x584610(0xe2)]=_0x3f3e8c,_0x767310;}export function classifyDirectiveOperand(_0x567399){const _0x2fc102=_0x36d3,_0x1682f2={};_0x1682f2[_0x2fc102(0x112)]=function(_0x24f556,_0x2f0587){return _0x24f556!==_0x2f0587;},_0x1682f2[_0x2fc102(0x114)]=function(_0x3f99ed,_0x584990){return _0x3f99ed+_0x584990;};const _0x3de986=_0x1682f2;if(_0x567399[_0x2fc102(0xff)]('\x27')||_0x567399[_0x2fc102(0xff)]('\x22')){const _0x4067a3={};return _0x4067a3[_0x2fc102(0xea)]=_0x2fc102(0xfa),_0x4067a3;}if(_0x567399[_0x2fc102(0xee)](',')){const _0x3dedbe=_0x567399['indexOf'](','),_0x6ec30a=_0x567399[_0x2fc102(0x117)](0x0,_0x3dedbe),_0x5580e3=_0x567399[_0x2fc102(0x117)](_0x3dedbe+0x1),_0x5482c2=_0x6ec30a['indexOf']('/');if(_0x3de986[_0x2fc102(0x112)](_0x5482c2,-0x1)){const _0x2a5493=_0x6ec30a[_0x2fc102(0x117)](0x0,_0x5482c2),_0x4be942=/^\*libl$/i[_0x2fc102(0xf6)](_0x2a5493)?null:_0x2a5493;return{'type':_0x2fc102(0x131),'library':_0x4be942,'fileName':_0x6ec30a[_0x2fc102(0x117)](_0x3de986[_0x2fc102(0x114)](_0x5482c2,0x1)),'memberName':_0x5580e3};}const _0x1b3409={};return _0x1b3409[_0x2fc102(0xea)]=_0x2fc102(0x131),_0x1b3409[_0x2fc102(0xe9)]=null,_0x1b3409[_0x2fc102(0xf0)]=_0x6ec30a,_0x1b3409[_0x2fc102(0xe0)]=_0x5580e3,_0x1b3409;}if(_0x567399[_0x2fc102(0xee)]('/')){const _0x27a042={};return _0x27a042[_0x2fc102(0xea)]=_0x2fc102(0xfa),_0x27a042;}if(/\.rpgle$/i[_0x2fc102(0xf6)](_0x567399)||/\.sqlrpgle$/i[_0x2fc102(0xf6)](_0x567399)){const _0x2815c1={};return _0x2815c1['type']='ifs',_0x2815c1;}const _0x597aec={};return _0x597aec[_0x2fc102(0xea)]=_0x2fc102(0x131),_0x597aec[_0x2fc102(0xe9)]=null,_0x597aec['fileName']=null,_0x597aec[_0x2fc102(0xe0)]=_0x567399,_0x597aec;}function findFileInsensitive(_0x54bb2e,_0x2c8f83){const _0x492d70=_0x36d3;let _0x838608;try{_0x838608=readdirSync(_0x54bb2e);}catch{return null;}if(_0x838608[_0x492d70(0xee)](_0x2c8f83))return _0x2c8f83;const _0x2ec479=_0x2c8f83['toLowerCase']();return _0x838608[_0x492d70(0xe8)](_0x22866d=>_0x22866d['toLowerCase']()===_0x2ec479)||null;}function findDirInsensitive(_0x46b1ec,_0x27fbc5){const _0x147a9b=_0x36d3,_0x2e9f9e={'qzSuS':function(_0x516581,_0x281c8c){return _0x516581(_0x281c8c);}};let _0x3c42a5;try{_0x3c42a5=_0x2e9f9e[_0x147a9b(0x128)](readdirSync,_0x46b1ec);}catch{return null;}if(_0x3c42a5['includes'](_0x27fbc5))return _0x27fbc5;const _0x2824bb=_0x27fbc5[_0x147a9b(0x11c)]();return _0x3c42a5[_0x147a9b(0xe8)](_0x2c32a3=>_0x2c32a3[_0x147a9b(0x11c)]()===_0x2824bb)||null;}function _0x36d3(_0x4b46c6,_0x224d63){_0x4b46c6=_0x4b46c6-0xdf;const _0x104a6a=_0x104a();let _0x36d382=_0x104a6a[_0x4b46c6];if(_0x36d3['TSfmsG']===undefined){var _0x38199b=function(_0x1a9f9d){const _0x37d77a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x37f33f='',_0x215192='';for(let _0x5bac18=0x0,_0x901766,_0x1ed8a7,_0x402738=0x0;_0x1ed8a7=_0x1a9f9d['charAt'](_0x402738++);~_0x1ed8a7&&(_0x901766=_0x5bac18%0x4?_0x901766*0x40+_0x1ed8a7:_0x1ed8a7,_0x5bac18++%0x4)?_0x37f33f+=String['fromCharCode'](0xff&_0x901766>>(-0x2*_0x5bac18&0x6)):0x0){_0x1ed8a7=_0x37d77a['indexOf'](_0x1ed8a7);}for(let _0x3ffa3f=0x0,_0x35c288=_0x37f33f['length'];_0x3ffa3f<_0x35c288;_0x3ffa3f++){_0x215192+='%'+('00'+_0x37f33f['charCodeAt'](_0x3ffa3f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x215192);};_0x36d3['jXCTBn']=_0x38199b,_0x36d3['mxahhs']={},_0x36d3['TSfmsG']=!![];}const _0x2a7a31=_0x104a6a[0x0],_0x2057b1=_0x4b46c6+_0x2a7a31,_0x1423fa=_0x36d3['mxahhs'][_0x2057b1];return!_0x1423fa?(_0x36d382=_0x36d3['jXCTBn'](_0x36d382),_0x36d3['mxahhs'][_0x2057b1]=_0x36d382):_0x36d382=_0x1423fa,_0x36d382;}function tryResolveInDir(_0x5f26fc,_0x35ff18,_0xe395ac){const _0x304bcf=_0x36d3,_0x552c8d={'WnPid':function(_0x12fd04,_0x38fcd5,_0x2e4669){return _0x12fd04(_0x38fcd5,_0x2e4669);},'wvNQo':function(_0x29649d,_0x37b21f,_0xd5ac62){return _0x29649d(_0x37b21f,_0xd5ac62);},'RoYGk':'.rpgle','clJaL':_0x304bcf(0xef),'VxUgr':function(_0x3fe206,_0x43fad6){return _0x3fe206+_0x43fad6;}},_0x5433c2=_0x5f26fc['split']('/');let _0x44e67e=_0xe395ac;const _0x55f5d9=[];for(const _0x59a458 of _0x5433c2){const _0x16c502=_0x552c8d[_0x304bcf(0xe5)](findDirInsensitive,_0x44e67e,_0x59a458);if(!_0x16c502)return null;_0x55f5d9['push'](_0x16c502),_0x44e67e=_0x552c8d[_0x304bcf(0xfc)](join,_0x44e67e,_0x16c502);}const _0x30acbe=_0x55f5d9[_0x304bcf(0x110)]('/'),_0x327d74=[_0x552c8d[_0x304bcf(0x102)],_0x552c8d[_0x304bcf(0x132)]];for(const _0x154a35 of _0x327d74){const _0x3d9045=_0x552c8d[_0x304bcf(0xf7)](_0x35ff18,_0x154a35),_0x650441=findFileInsensitive(join(_0xe395ac,_0x30acbe),_0x3d9045);if(_0x650441)return _0x30acbe+'/'+_0x650441;}return null;}export function resolveSourceMember(_0x34ed42,_0x470093,_0x3c2004={}){const _0xaec768=_0x36d3,_0x5d8738={'kSaPr':function(_0xb03a7a,_0x2fef8c){return _0xb03a7a===_0x2fef8c;},'xdhIO':function(_0x4a9bbd,_0x42430a,_0x24cbb2,_0x5d7178){return _0x4a9bbd(_0x42430a,_0x24cbb2,_0x5d7178);},'JfJPu':_0xaec768(0xf1),'anVLE':function(_0x462a42,_0x49d2e2,_0x25052c){return _0x462a42(_0x49d2e2,_0x25052c);}},{library:_0x8a1ada,fileName:_0x554b29,memberName:_0x1c160f}=_0x34ed42,{librarySearchPath:_0x495156,searchPathExplicit:_0x9f92df}=_0x3c2004;if(_0x8a1ada!==null){const _0x2c9d48=_0x8a1ada+'/'+_0x554b29,_0x1532f6=tryResolveInDir(_0x2c9d48,_0x1c160f,_0x470093);if(_0x1532f6)return _0x1532f6;throw new Error(_0xaec768(0x12a)+_0x1c160f+'\x20in\x20'+_0x2c9d48+_0xaec768(0x12c));}if(_0x495156&&_0x495156[_0xaec768(0x127)]>0x0){const _0x508ac0=[];for(const _0x18aa57 of _0x495156){let _0x345613;_0x5d8738[_0xaec768(0x12d)](_0x554b29,null)?_0x345613=_0x18aa57+_0xaec768(0x115):_0x345613=_0x18aa57+'/'+_0x554b29;const _0x2dac0d=_0x5d8738[_0xaec768(0x11a)](tryResolveInDir,_0x345613,_0x1c160f,_0x470093);if(_0x2dac0d){const _0x5d4cec={};_0x5d4cec[_0xaec768(0x126)]=_0x18aa57,_0x5d4cec[_0xaec768(0xeb)]=_0x2dac0d,_0x508ac0[_0xaec768(0xf4)](_0x5d4cec);}}if(_0x508ac0[_0xaec768(0x127)]===0x1)return _0x508ac0[0x0]['result'];if(_0x508ac0[_0xaec768(0x127)]>0x1){if(!_0x9f92df){const _0x4b2fa2=_0x508ac0[_0xaec768(0x10a)](_0x3655dc=>_0x3655dc[_0xaec768(0x126)])[_0xaec768(0x110)](',\x20');console[_0xaec768(0x135)](_0xaec768(0x125)+_0x1c160f+_0xaec768(0x12b)+_0x4b2fa2+_0xaec768(0x118)+_0x508ac0[0x0][_0xaec768(0x126)]+_0xaec768(0x11e));}return _0x508ac0[0x0][_0xaec768(0xeb)];}}let _0x2181c6;_0x554b29===null?_0x2181c6=_0x5d8738[_0xaec768(0x105)]:_0x2181c6=_0x554b29;const _0x3e6c37=_0x2181c6[_0xaec768(0x10e)]('/');let _0x1c631e=_0x470093;for(const _0xa1d09b of _0x3e6c37){const _0x21f0f6=_0x5d8738[_0xaec768(0x134)](findDirInsensitive,_0x1c631e,_0xa1d09b);if(!_0x21f0f6)throw new Error(_0xaec768(0x116)+_0x2181c6+_0xaec768(0x10f)+_0xa1d09b+'\x27\x20in\x20\x27'+_0x1c631e+'\x27)');_0x1c631e=join(_0x1c631e,_0x21f0f6);}const _0x254db4=tryResolveInDir(_0x2181c6,_0x1c160f,_0x470093);if(_0x254db4)return _0x254db4;throw new Error(_0xaec768(0x12a)+_0x1c160f+_0xaec768(0x12e)+_0x2181c6+_0xaec768(0x12c));}export function preprocessFileContent(_0x65fc04,_0xd89eab,_0x58da47={}){const _0x1c0af7=_0x36d3,_0xbc23f={'yLSBa':function(_0x507fc6,_0x3f8691){return _0x507fc6===_0x3f8691;},'neZVG':function(_0x474a7f,_0x1b9cee){return _0x474a7f(_0x1b9cee);},'Eqway':function(_0xc6150e,_0x4b7bb1){return _0xc6150e+_0x4b7bb1;},'aMSOp':function(_0x512ff6,_0x4df3d7){return _0x512ff6+_0x4df3d7;}},_0x2ae4f9=_0x65fc04[_0x1c0af7(0x10e)]('\x0a'),_0x2b1c97={};_0x2b1c97[_0x1c0af7(0x123)]=_0x65fc04,_0x2b1c97[_0x1c0af7(0x129)]=![];if(_0xbc23f[_0x1c0af7(0x124)](_0x2ae4f9[_0x1c0af7(0x127)],0x0))return _0x2b1c97;const _0x204b4d=detectFormat(_0x2ae4f9[0x0]);let _0x24b42e=![];const _0x40e662=[];for(let _0x5c5ae9=0x0;_0x5c5ae9<_0x2ae4f9['length'];_0x5c5ae9++){const _0x369207=_0x2ae4f9[_0x5c5ae9],_0x17827a=extractDirective(_0x369207,_0x204b4d);if(!_0x17827a){_0x40e662[_0x1c0af7(0xf4)](_0x369207);continue;}const _0x1dd4a8=_0xbc23f[_0x1c0af7(0x130)](classifyDirectiveOperand,_0x17827a[_0x1c0af7(0xe2)]);if(_0x1dd4a8[_0x1c0af7(0xea)]==='ifs'){_0x40e662[_0x1c0af7(0xf4)](_0x369207);continue;}let _0x490314;try{_0x490314=resolveSourceMember(_0x1dd4a8,_0xd89eab,_0x58da47);}catch(_0x726291){const _0x45054a=_0x5c5ae9+0x1;throw new Error(_0xbc23f['Eqway'](_0xbc23f[_0x1c0af7(0x133)](_0x726291['message']+'\x0a',_0x1c0af7(0x10d)+_0x45054a+'\x0a'),_0x1c0af7(0xfb)+_0x369207[_0x1c0af7(0xf9)]()));}let _0x5de805;if(_0x204b4d==='free'){const _0x1796f1=_0x369207[_0x1c0af7(0x104)](/^(\s*\/)(copy|include) /i),_0x57192d=_0x1796f1[0x1],_0x2322cc=_0x1796f1[0x2],_0x218590=_0x369207[_0x1c0af7(0x117)](_0x1796f1[0x0][_0x1c0af7(0x127)]+_0x17827a[_0x1c0af7(0xe2)]['length']);_0x5de805=''+_0x57192d+_0x2322cc+'\x20'+_0x490314+_0x218590;}else{const _0x376fdb=_0x369207[_0x1c0af7(0x117)](0x0,0x6),_0x5e8f46=_0x369207['substring'](0x7)[_0x1c0af7(0x104)](/^(copy|include) /i),_0x3f787e=_0x5e8f46[0x1],_0x20b742=0x7+_0x5e8f46[0x0][_0x1c0af7(0x127)],_0x922ac8=_0x369207[_0x1c0af7(0x117)](_0x20b742+_0x17827a['operand'][_0x1c0af7(0x127)]);_0x5de805=_0x376fdb+'/'+_0x3f787e+'\x20'+_0x490314+_0x922ac8;}_0x40e662[_0x1c0af7(0xf4)](_0x5de805),_0x24b42e=!![];}return{'content':_0x40e662['join']('\x0a'),'modified':_0x24b42e};}export function preprocessFile(_0x3e4187,_0x420fe4,_0x629ad9={}){const _0xa9af0f=_0x36d3,_0x29618d={'sUYKd':function(_0x5eda33,_0x410d86,_0x6e810a){return _0x5eda33(_0x410d86,_0x6e810a);}};if(!/\.(rpgle|sqlrpgle)$/i['test'](_0x3e4187)){const _0x110d39={};return _0x110d39[_0xa9af0f(0x129)]=![],_0x110d39;}const _0x583b40=_0x29618d[_0xa9af0f(0xdf)](readFileSync,_0x3e4187,'utf8');try{return preprocessFileContent(_0x583b40,_0x420fe4,_0x629ad9);}catch(_0x2800c8){const _0x7e8225=_0x2800c8[_0xa9af0f(0xe4)]['replace'](/^(.*\n {2})File: /,_0xa9af0f(0xe6)+_0x3e4187+',\x20');throw new Error(_0x7e8225);}}export function preprocessFiles(_0x6d941,_0x3f8b4e,_0x397667,_0x2f809f={}){const _0x255199=_0x36d3,_0x15bb02={'YrIiA':function(_0x197000,_0x10c15c,_0x12633c,_0x397fab){return _0x197000(_0x10c15c,_0x12633c,_0x397fab);},'pDtes':function(_0x25036b,_0x3bf728,_0x162cb9){return _0x25036b(_0x3bf728,_0x162cb9);},'UTrdn':function(_0x2da77f,_0x45f378){return _0x2da77f(_0x45f378);},'IPIXR':function(_0x511d88,_0x5ad2db,_0x2d1590){return _0x511d88(_0x5ad2db,_0x2d1590);}},_0x182541=[];let _0x4c4ab5=![];for(const _0x239648 of _0x6d941){const _0xb1d9d4=join(_0x3f8b4e,_0x239648),_0x528f91=_0x15bb02[_0x255199(0xe1)](preprocessFile,_0xb1d9d4,_0x3f8b4e,_0x2f809f),_0x4af1ad={'filePath':_0x239648,..._0x528f91};_0x182541['push'](_0x4af1ad);if(_0x528f91[_0x255199(0x129)])_0x4c4ab5=!![];}if(!_0x4c4ab5){const _0x29e3ae={};return _0x29e3ae['needed']=![],_0x29e3ae[_0x255199(0xfe)]='.',_0x29e3ae;}const _0x5ea1a0=_0x397667+'-'+randomUUID();for(let _0x1a5ef9=0x0;_0x1a5ef9<_0x6d941[_0x255199(0x127)];_0x1a5ef9++){const _0x40e1e=_0x6d941[_0x1a5ef9],_0x4f7315=_0x182541[_0x1a5ef9],_0x1e7f61=join(_0x5ea1a0,_0x40e1e),_0xdc81ab={};_0xdc81ab[_0x255199(0x103)]=!![],_0x15bb02['pDtes'](mkdirSync,_0x15bb02[_0x255199(0x122)](dirname,_0x1e7f61),_0xdc81ab),_0x4f7315[_0x255199(0x129)]?_0x15bb02[_0x255199(0x108)](writeFileSync,_0x1e7f61,_0x4f7315[_0x255199(0x123)]):_0x15bb02['IPIXR'](copyFileSync,join(_0x3f8b4e,_0x40e1e),_0x1e7f61);}const _0x4d6476={};return _0x4d6476['needed']=!![],_0x4d6476[_0x255199(0xfe)]=_0x5ea1a0,_0x4d6476;}
|
|
1
|
+
(function(_0x2d5577,_0x22a26b){const _0x14cee5=_0x413b,_0x34f364=_0x2d5577();while(!![]){try{const _0x1b0579=-parseInt(_0x14cee5(0x15e))/0x1*(-parseInt(_0x14cee5(0x155))/0x2)+parseInt(_0x14cee5(0x15b))/0x3*(-parseInt(_0x14cee5(0x186))/0x4)+-parseInt(_0x14cee5(0x182))/0x5+parseInt(_0x14cee5(0x176))/0x6+parseInt(_0x14cee5(0x158))/0x7+-parseInt(_0x14cee5(0x142))/0x8*(-parseInt(_0x14cee5(0x143))/0x9)+parseInt(_0x14cee5(0x162))/0xa;if(_0x1b0579===_0x22a26b)break;else _0x34f364['push'](_0x34f364['shift']());}catch(_0x5f5905){_0x34f364['push'](_0x34f364['shift']());}}}(_0x2508,0x1c86e));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';function _0x413b(_0x18c64d,_0x29070e){_0x18c64d=_0x18c64d-0x138;const _0x25084e=_0x2508();let _0x413b39=_0x25084e[_0x18c64d];if(_0x413b['cQAEna']===undefined){var _0x1bb641=function(_0x169676){const _0x5983b9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x577e3f='',_0x1c3a6c='';for(let _0x8f7e3e=0x0,_0x39b509,_0x43572a,_0x4bc33a=0x0;_0x43572a=_0x169676['charAt'](_0x4bc33a++);~_0x43572a&&(_0x39b509=_0x8f7e3e%0x4?_0x39b509*0x40+_0x43572a:_0x43572a,_0x8f7e3e++%0x4)?_0x577e3f+=String['fromCharCode'](0xff&_0x39b509>>(-0x2*_0x8f7e3e&0x6)):0x0){_0x43572a=_0x5983b9['indexOf'](_0x43572a);}for(let _0x2fdf4b=0x0,_0x2e0fdf=_0x577e3f['length'];_0x2fdf4b<_0x2e0fdf;_0x2fdf4b++){_0x1c3a6c+='%'+('00'+_0x577e3f['charCodeAt'](_0x2fdf4b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1c3a6c);};_0x413b['bSFpCj']=_0x1bb641,_0x413b['hsIYBx']={},_0x413b['cQAEna']=!![];}const _0x49503c=_0x25084e[0x0],_0x58098f=_0x18c64d+_0x49503c,_0x462895=_0x413b['hsIYBx'][_0x58098f];return!_0x462895?(_0x413b39=_0x413b['bSFpCj'](_0x413b39),_0x413b['hsIYBx'][_0x58098f]=_0x413b39):_0x413b39=_0x462895,_0x413b39;}export function detectFormat(_0x3c10dd){const _0x747521=_0x413b;if(/^\*\*free$/i[_0x747521(0x165)](_0x3c10dd[_0x747521(0x169)]()))return _0x747521(0x13f);return _0x747521(0x183);}export function extractDirective(_0xf2aa7a,_0x35c21d){const _0x4d4f64=_0x413b,_0x1fb5c6={};_0x1fb5c6[_0x4d4f64(0x15d)]=function(_0x3b6086,_0xaffe94){return _0x3b6086===_0xaffe94;},_0x1fb5c6[_0x4d4f64(0x138)]=function(_0x2d71bb,_0x37557a){return _0x2d71bb<_0x37557a;},_0x1fb5c6['UTaDx']=function(_0xb9cbcd,_0x362578){return _0xb9cbcd!==_0x362578;},_0x1fb5c6[_0x4d4f64(0x14b)]=function(_0x1c2dac,_0x3266f4){return _0x1c2dac-_0x3266f4;},_0x1fb5c6[_0x4d4f64(0x157)]=function(_0x36c449,_0x310af2){return _0x36c449+_0x310af2;};const _0x50f409=_0x1fb5c6;let _0x239cd4,_0xdc6b21;if(_0x50f409['pcMhu'](_0x35c21d,'free')){const _0x24d888=_0xf2aa7a[_0x4d4f64(0x161)](/^\s*\/(copy|include) (\S)/i);if(!_0x24d888)return null;const _0x4f3ac9=_0xf2aa7a[_0x4d4f64(0x17f)]();if(_0x4f3ac9[_0x4d4f64(0x156)]('//'))return null;_0x239cd4=_0x24d888[0x1][_0x4d4f64(0x188)](),_0xdc6b21=_0xf2aa7a[_0x4d4f64(0x189)](_0x24d888[_0x4d4f64(0x15a)]+_0x24d888[0x0][_0x4d4f64(0x15c)]-0x1);}else{if(_0x50f409['oGaWd'](_0xf2aa7a['length'],0x7))return null;if(_0x50f409[_0x4d4f64(0x17e)](_0xf2aa7a[0x6],'/'))return null;const _0x3990f8=_0xf2aa7a[_0x4d4f64(0x189)](0x7),_0x1211d7=_0x3990f8[_0x4d4f64(0x161)](/^(copy|include) (\S)/i);if(!_0x1211d7)return null;_0x239cd4=_0x1211d7[0x1][_0x4d4f64(0x188)](),_0xdc6b21=_0x3990f8[_0x4d4f64(0x189)](_0x50f409['ffRym'](_0x1211d7[0x0]['length'],0x1));}let _0x1b3f75;if(_0xdc6b21[_0x4d4f64(0x156)]('\x27')){const _0x367bfd=_0xdc6b21[_0x4d4f64(0x179)]('\x27',0x1);_0x1b3f75=_0x367bfd===-0x1?_0xdc6b21[_0x4d4f64(0x151)]():_0xdc6b21[_0x4d4f64(0x189)](0x0,_0x50f409[_0x4d4f64(0x157)](_0x367bfd,0x1));}else{if(_0xdc6b21[_0x4d4f64(0x156)]('\x22')){const _0x5a5495=_0xdc6b21[_0x4d4f64(0x179)]('\x22',0x1);_0x1b3f75=_0x50f409['pcMhu'](_0x5a5495,-0x1)?_0xdc6b21[_0x4d4f64(0x151)]():_0xdc6b21[_0x4d4f64(0x189)](0x0,_0x5a5495+0x1);}else _0x1b3f75=_0xdc6b21[_0x4d4f64(0x15f)](/\s/)[0x0];}const _0x59f5b4={};return _0x59f5b4['keyword']=_0x239cd4,_0x59f5b4[_0x4d4f64(0x148)]=_0x1b3f75,_0x59f5b4;}export function classifyDirectiveOperand(_0x319267){const _0x2ba2b9=_0x413b,_0x27a35c={};_0x27a35c[_0x2ba2b9(0x16d)]=function(_0x50747f,_0x3e8df6){return _0x50747f+_0x3e8df6;},_0x27a35c[_0x2ba2b9(0x146)]=function(_0x3b7d51,_0x25a800){return _0x3b7d51!==_0x25a800;},_0x27a35c['gHyPW']=function(_0x47b033,_0x575989){return _0x47b033+_0x575989;},_0x27a35c[_0x2ba2b9(0x13b)]=_0x2ba2b9(0x180),_0x27a35c[_0x2ba2b9(0x14d)]=_0x2ba2b9(0x13d);const _0x13c38b=_0x27a35c;if(_0x319267[_0x2ba2b9(0x156)]('\x27')||_0x319267[_0x2ba2b9(0x156)]('\x22')){const _0x1f3e34={};return _0x1f3e34[_0x2ba2b9(0x167)]=_0x2ba2b9(0x180),_0x1f3e34;}if(_0x319267[_0x2ba2b9(0x173)](',')){const _0x96c51c=_0x319267['indexOf'](','),_0x53d31a=_0x319267['substring'](0x0,_0x96c51c),_0x239c9b=_0x319267[_0x2ba2b9(0x189)](_0x13c38b[_0x2ba2b9(0x16d)](_0x96c51c,0x1)),_0xdbb63b=_0x53d31a[_0x2ba2b9(0x179)]('/');if(_0x13c38b[_0x2ba2b9(0x146)](_0xdbb63b,-0x1)){const _0x1922df=_0x53d31a[_0x2ba2b9(0x189)](0x0,_0xdbb63b),_0x397ec3=/^\*libl$/i['test'](_0x1922df)?null:_0x1922df;return{'type':'member','library':_0x397ec3,'fileName':_0x53d31a[_0x2ba2b9(0x189)](_0x13c38b[_0x2ba2b9(0x13a)](_0xdbb63b,0x1)),'memberName':_0x239c9b};}const _0x24ac0a={};return _0x24ac0a[_0x2ba2b9(0x167)]=_0x2ba2b9(0x13d),_0x24ac0a['library']=null,_0x24ac0a[_0x2ba2b9(0x16e)]=_0x53d31a,_0x24ac0a[_0x2ba2b9(0x187)]=_0x239c9b,_0x24ac0a;}if(_0x319267[_0x2ba2b9(0x173)]('/')){const _0x3f5ba3={};return _0x3f5ba3[_0x2ba2b9(0x167)]='ifs',_0x3f5ba3;}if(/\.rpgle$/i[_0x2ba2b9(0x165)](_0x319267)||/\.sqlrpgle$/i[_0x2ba2b9(0x165)](_0x319267)){const _0x5050da={};return _0x5050da[_0x2ba2b9(0x167)]=_0x13c38b['PrWQC'],_0x5050da;}const _0x5c396c={};return _0x5c396c[_0x2ba2b9(0x167)]=_0x13c38b[_0x2ba2b9(0x14d)],_0x5c396c[_0x2ba2b9(0x172)]=null,_0x5c396c[_0x2ba2b9(0x16e)]=null,_0x5c396c[_0x2ba2b9(0x187)]=_0x319267,_0x5c396c;}function findFileInsensitive(_0x69a7d4,_0x57ef9c){const _0x3cf07d=_0x413b;let _0x406dee;try{_0x406dee=readdirSync(_0x69a7d4);}catch{return null;}if(_0x406dee[_0x3cf07d(0x173)](_0x57ef9c))return _0x57ef9c;const _0x1c9e5e=_0x57ef9c[_0x3cf07d(0x188)]();return _0x406dee['find'](_0x42f767=>_0x42f767[_0x3cf07d(0x188)]()===_0x1c9e5e)||null;}function findDirInsensitive(_0x500eb5,_0x207c94){const _0x54f705=_0x413b,_0x3266e4={'VAfkr':function(_0x17b583,_0x394c59){return _0x17b583(_0x394c59);}};let _0x1cf76f;try{_0x1cf76f=_0x3266e4[_0x54f705(0x16f)](readdirSync,_0x500eb5);}catch{return null;}if(_0x1cf76f[_0x54f705(0x173)](_0x207c94))return _0x207c94;const _0x267e50=_0x207c94[_0x54f705(0x188)]();return _0x1cf76f[_0x54f705(0x141)](_0x284405=>_0x284405[_0x54f705(0x188)]()===_0x267e50)||null;}function tryResolveInDir(_0x101761,_0x267293,_0xc436ba){const _0xc6dc14=_0x413b,_0x433da1={'KCvfs':function(_0x460348,_0x5b389c,_0x3826a2){return _0x460348(_0x5b389c,_0x3826a2);},'nVNcY':'.rpgle','BcALr':function(_0x5022cb,_0xa868d8){return _0x5022cb+_0xa868d8;},'FJUjU':function(_0x38dc5c,_0xcfc803,_0x3fca3a){return _0x38dc5c(_0xcfc803,_0x3fca3a);}},_0x203541=_0x101761[_0xc6dc14(0x15f)]('/');let _0x35fdf6=_0xc436ba;const _0x1af698=[];for(const _0x86a7c3 of _0x203541){const _0x308e9e=_0x433da1['KCvfs'](findDirInsensitive,_0x35fdf6,_0x86a7c3);if(!_0x308e9e)return null;_0x1af698[_0xc6dc14(0x149)](_0x308e9e),_0x35fdf6=join(_0x35fdf6,_0x308e9e);}const _0x40effd=_0x1af698[_0xc6dc14(0x184)]('/'),_0x225a32=[_0x433da1[_0xc6dc14(0x174)],_0xc6dc14(0x181)];for(const _0x31fb7d of _0x225a32){const _0x284256=_0x433da1['BcALr'](_0x267293,_0x31fb7d),_0x2ca955=_0x433da1[_0xc6dc14(0x163)](findFileInsensitive,_0x433da1[_0xc6dc14(0x17a)](join,_0xc436ba,_0x40effd),_0x284256);if(_0x2ca955)return _0x40effd+'/'+_0x2ca955;}return null;}export function resolveSourceMember(_0x379800,_0x3168bc,_0xd61ee7={}){const _0x577588=_0x413b,_0x41a7cf={'woGFM':function(_0x5a9508,_0x41b00d){return _0x5a9508!==_0x41b00d;},'QEZhQ':function(_0x1790a8,_0x274feb){return _0x1790a8===_0x274feb;},'iKxZy':function(_0x3803a6,_0x802855){return _0x3803a6>_0x802855;},'EkEtP':'qrpglesrc','AMjpN':function(_0x31c364,_0xff9dcf,_0x2e889c){return _0x31c364(_0xff9dcf,_0x2e889c);},'RypvE':function(_0x310fed,_0x1b454a,_0x11e128){return _0x310fed(_0x1b454a,_0x11e128);},'GyIkY':function(_0x26acee,_0x56d66e,_0x4d7cfb,_0x39942a){return _0x26acee(_0x56d66e,_0x4d7cfb,_0x39942a);}},{library:_0x2f3bd1,fileName:_0x3046af,memberName:_0x2db910}=_0x379800,{librarySearchPath:_0x5a2ee9,searchPathExplicit:_0x350d6a}=_0xd61ee7;if(_0x41a7cf[_0x577588(0x17c)](_0x2f3bd1,null)){const _0x404e4c=_0x2f3bd1+'/'+_0x3046af,_0x317fb2=tryResolveInDir(_0x404e4c,_0x2db910,_0x3168bc);if(_0x317fb2)return _0x317fb2;throw new Error('Source\x20member\x20not\x20found:\x20'+_0x2db910+_0x577588(0x14f)+_0x404e4c+_0x577588(0x17b));}if(_0x5a2ee9&&_0x5a2ee9[_0x577588(0x15c)]>0x0){const _0x3498ab=[];for(const _0x4ecf0f of _0x5a2ee9){let _0x4a10cf;_0x41a7cf[_0x577588(0x170)](_0x3046af,null)?_0x4a10cf=_0x4ecf0f+_0x577588(0x168):_0x4a10cf=_0x4ecf0f+'/'+_0x3046af;const _0x4078c6=tryResolveInDir(_0x4a10cf,_0x2db910,_0x3168bc);if(_0x4078c6){const _0x37d6ea={};_0x37d6ea[_0x577588(0x152)]=_0x4ecf0f,_0x37d6ea[_0x577588(0x139)]=_0x4078c6,_0x3498ab[_0x577588(0x149)](_0x37d6ea);}}if(_0x3498ab[_0x577588(0x15c)]===0x1)return _0x3498ab[0x0][_0x577588(0x139)];if(_0x41a7cf[_0x577588(0x147)](_0x3498ab[_0x577588(0x15c)],0x1)){if(!_0x350d6a){const _0x5984be=_0x3498ab[_0x577588(0x153)](_0x334f56=>_0x334f56[_0x577588(0x152)])[_0x577588(0x184)](',\x20');console[_0x577588(0x178)](_0x577588(0x159)+_0x2db910+_0x577588(0x14e)+_0x5984be+'.\x20Using\x20'+_0x3498ab[0x0][_0x577588(0x152)]+_0x577588(0x140));}return _0x3498ab[0x0]['result'];}}let _0x56f5d9;_0x3046af===null?_0x56f5d9=_0x41a7cf['EkEtP']:_0x56f5d9=_0x3046af;const _0x5c6479=_0x56f5d9[_0x577588(0x15f)]('/');let _0x3e4fce=_0x3168bc;for(const _0x454dbf of _0x5c6479){const _0x3b9a51=_0x41a7cf['AMjpN'](findDirInsensitive,_0x3e4fce,_0x454dbf);if(!_0x3b9a51)throw new Error(_0x577588(0x16b)+_0x56f5d9+_0x577588(0x166)+_0x454dbf+_0x577588(0x160)+_0x3e4fce+'\x27)');_0x3e4fce=_0x41a7cf[_0x577588(0x14a)](join,_0x3e4fce,_0x3b9a51);}const _0x33e5f8=_0x41a7cf['GyIkY'](tryResolveInDir,_0x56f5d9,_0x2db910,_0x3168bc);if(_0x33e5f8)return _0x33e5f8;throw new Error(_0x577588(0x164)+_0x2db910+_0x577588(0x14f)+_0x56f5d9+_0x577588(0x17b));}export function preprocessFileContent(_0x3ebf68,_0x5640f1,_0x2a15cb={}){const _0x456f87=_0x413b,_0x1a8b03={'yCWVx':function(_0x833f87,_0xe2c8aa){return _0x833f87===_0xe2c8aa;},'yrlTY':function(_0x36b435,_0x29edff){return _0x36b435(_0x29edff);},'NHhRb':function(_0x47df34,_0x3d2fe0){return _0x47df34<_0x3d2fe0;},'xqHhk':function(_0x1ba38b,_0x476911){return _0x1ba38b+_0x476911;},'UnkEl':function(_0x3a7e2e,_0x4512dd){return _0x3a7e2e+_0x4512dd;},'VjWwP':_0x456f87(0x13f)},_0x5e53b8=_0x3ebf68[_0x456f87(0x15f)]('\x0a'),_0x530877={};_0x530877[_0x456f87(0x13e)]=_0x3ebf68,_0x530877[_0x456f87(0x154)]=![];if(_0x1a8b03['yCWVx'](_0x5e53b8[_0x456f87(0x15c)],0x0))return _0x530877;const _0x3fa905=_0x1a8b03[_0x456f87(0x13c)](detectFormat,_0x5e53b8[0x0]);let _0x4f4df7=![];const _0x19cfb0=[];for(let _0x5c0a49=0x0;_0x1a8b03['NHhRb'](_0x5c0a49,_0x5e53b8[_0x456f87(0x15c)]);_0x5c0a49++){const _0x3bac0e=_0x5e53b8[_0x5c0a49],_0x34c6fa=extractDirective(_0x3bac0e,_0x3fa905);if(!_0x34c6fa){_0x19cfb0['push'](_0x3bac0e);continue;}const _0x416848=classifyDirectiveOperand(_0x34c6fa['operand']);if(_0x416848[_0x456f87(0x167)]==='ifs'){_0x19cfb0[_0x456f87(0x149)](_0x3bac0e);continue;}let _0x312aa5;try{_0x312aa5=resolveSourceMember(_0x416848,_0x5640f1,_0x2a15cb);}catch(_0x111ba2){const _0x3ebcba=_0x1a8b03['xqHhk'](_0x5c0a49,0x1);throw new Error(_0x1a8b03[_0x456f87(0x175)](_0x1a8b03[_0x456f87(0x175)](_0x111ba2['message']+'\x0a','\x20\x20File:\x20line\x20'+_0x3ebcba+'\x0a'),'\x20\x20Directive:\x20'+_0x3bac0e[_0x456f87(0x17f)]()));}let _0x34f501;if(_0x3fa905===_0x1a8b03[_0x456f87(0x185)]){const _0x505994=_0x3bac0e[_0x456f87(0x161)](/^(\s*\/)(copy|include) /i),_0x27c3be=_0x505994[0x1],_0x1bfd08=_0x505994[0x2],_0xa48fef=_0x3bac0e['substring'](_0x505994[0x0]['length']+_0x34c6fa[_0x456f87(0x148)][_0x456f87(0x15c)]);_0x34f501=''+_0x27c3be+_0x1bfd08+'\x20'+_0x312aa5+_0xa48fef;}else{const _0x513e87=_0x3bac0e[_0x456f87(0x189)](0x0,0x6),_0x77228a=_0x3bac0e['substring'](0x7)['match'](/^(copy|include) /i),_0x30ab7f=_0x77228a[0x1],_0x1154ea=_0x1a8b03[_0x456f87(0x17d)](0x7,_0x77228a[0x0][_0x456f87(0x15c)]),_0x3e6182=_0x3bac0e['substring'](_0x1154ea+_0x34c6fa[_0x456f87(0x148)][_0x456f87(0x15c)]);_0x34f501=_0x513e87+'/'+_0x30ab7f+'\x20'+_0x312aa5+_0x3e6182;}_0x19cfb0[_0x456f87(0x149)](_0x34f501),_0x4f4df7=!![];}return{'content':_0x19cfb0[_0x456f87(0x184)]('\x0a'),'modified':_0x4f4df7};}function _0x2508(){const _0x1d22a5=['u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','DgvZDa','icHSB29RAw5NigzVCIaN','DhLWzq','l3fYCgDSzxnYyW','DhjPBuvUza','DxrMoa','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','CMvJDxjZAxzL','rKXTvg4','zMLSzu5HBwu','vKfMA3i','uuvAAfe','BgfMz3a','BgLICMfYEq','Aw5JBhvKzxm','BLzoy1K','vw5RrwW','odG1ntm0EfnbD1z1','C291CMnLuM9VDa','zxjYB3i','Aw5KzxHpzG','rKPvALu','lYaODhjPzwqGlNjWz2XLlcaUC3fSCNbNBguP','D29hrK0','EhfiAgS','vvrHrhG','DhjPBvn0yxj0','AwzZ','lNnXBhjWz2XL','odaWnZG1Cu5PDg5W','zML4zwq','AM9PBG','vMPxD1a','neLozM9NDa','BwvTyMvYtMfTzq','Dg9mB3DLCKnHC2u','C3vIC3rYAw5N','B0DHv2q','CMvZDwX0','z0H5ufC','uhjxuum','ExjSvfK','BwvTyMvY','y29UDgvUDa','zNjLzq','lIbtzxqGq09ervjnquTfx0Loq0XvrevFuefuscb0BYbJB250CM9SihnLyxjJAcbVCMrLCI4','zMLUza','mZa5ndrPt3nLq1y','mJa3u2HZCw9b','CMvWBgfJzq','BMvLzgvK','ALLWzxG','AuT4wNK','B3bLCMfUza','ChvZAa','uNLWDKu','zMzsEw0','z1bVDeK','vxrTDLq','jYbMB3vUzcbPBIbTDwX0AxbSzsbSAwjYyxjPzxm6ia','igLUia','tgfhyKW','DhjPBq','BgLIrgLY','BwfW','Bw9KAwzPzwq','mtG0D2Llv09x','C3rHCNrZv2L0Aa','A3PhqM4','mJmZmtG0zMnVqMvR','v2fYBMLUzZOGtwvTyMvYicC','Aw5KzxG','mJeZnZeXqwjOB1PA','BgvUz3rO','CgnnAhu','odqYq3Pwv1fy','C3bSAxq','jYbPBIaN','Bwf0y2G','oteXmfLuBLj4AW','s0n2zNm'];_0x2508=function(){return _0x1d22a5;};return _0x2508();}export function preprocessFile(_0x51b591,_0x47d95e,_0xe0d66f={}){const _0x1ba3ce=_0x413b,_0x56024f={'lafgp':function(_0x45693a,_0x41b5bb,_0x442f43){return _0x45693a(_0x41b5bb,_0x442f43);}};if(!/\.(rpgle|sqlrpgle)$/i['test'](_0x51b591)){const _0x79fbfd={};return _0x79fbfd[_0x1ba3ce(0x154)]=![],_0x79fbfd;}const _0x2c5285=_0x56024f[_0x1ba3ce(0x171)](readFileSync,_0x51b591,_0x1ba3ce(0x16a));try{return preprocessFileContent(_0x2c5285,_0x47d95e,_0xe0d66f);}catch(_0x20332f){const _0xfe0d95=_0x20332f['message'][_0x1ba3ce(0x144)](/^(.*\n {2})File: /,'$1File:\x20'+_0x51b591+',\x20');throw new Error(_0xfe0d95);}}export function preprocessFiles(_0x599b2b,_0x437498,_0x2bbbbe,_0x7dace7={}){const _0x5cddc6=_0x413b,_0x50989d={'vTtFQ':function(_0x4350bc,_0x5b08f1,_0x363dd8,_0x224ea0){return _0x4350bc(_0x5b08f1,_0x363dd8,_0x224ea0);},'gPotI':function(_0xca0df5,_0x4fc880){return _0xca0df5(_0x4fc880);},'LaGbL':function(_0x952f7a,_0x3d99c3,_0x1675c1){return _0x952f7a(_0x3d99c3,_0x1675c1);}},_0x776c86=[];let _0x497725=![];for(const _0x36072a of _0x599b2b){const _0xc2f03a=join(_0x437498,_0x36072a),_0x5a1591=_0x50989d['vTtFQ'](preprocessFile,_0xc2f03a,_0x437498,_0x7dace7),_0x3b7af7={'filePath':_0x36072a,..._0x5a1591};_0x776c86[_0x5cddc6(0x149)](_0x3b7af7);if(_0x5a1591['modified'])_0x497725=!![];}if(!_0x497725){const _0x1681fc={};return _0x1681fc[_0x5cddc6(0x145)]=![],_0x1681fc[_0x5cddc6(0x177)]='.',_0x1681fc;}const _0x48d10f=_0x2bbbbe+'-'+randomUUID();for(let _0x5259e5=0x0;_0x5259e5<_0x599b2b[_0x5cddc6(0x15c)];_0x5259e5++){const _0x53440d=_0x599b2b[_0x5259e5],_0x21eea4=_0x776c86[_0x5259e5],_0x877ca3=join(_0x48d10f,_0x53440d),_0x3924c1={};_0x3924c1[_0x5cddc6(0x16c)]=!![],mkdirSync(_0x50989d[_0x5cddc6(0x14c)](dirname,_0x877ca3),_0x3924c1),_0x21eea4[_0x5cddc6(0x154)]?_0x50989d[_0x5cddc6(0x150)](writeFileSync,_0x877ca3,_0x21eea4[_0x5cddc6(0x13e)]):_0x50989d[_0x5cddc6(0x150)](copyFileSync,_0x50989d[_0x5cddc6(0x150)](join,_0x437498,_0x53440d),_0x877ca3);}const _0x5556df={};return _0x5556df[_0x5cddc6(0x145)]=!![],_0x5556df[_0x5cddc6(0x177)]=_0x48d10f,_0x5556df;}
|
package/dist/lib/ssh.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d95dd,_0x25cf2f){const _0xcf1760=_0x3c4e,_0x3fadda=_0x3d95dd();while(!![]){try{const _0x1ec6a8=-parseInt(_0xcf1760(0x125))/0x1*(-parseInt(_0xcf1760(0x123))/0x2)+parseInt(_0xcf1760(0x127))/0x3*(parseInt(_0xcf1760(0x12f))/0x4)+-parseInt(_0xcf1760(0x10d))/0x5+parseInt(_0xcf1760(0x128))/0x6*(-parseInt(_0xcf1760(0x12b))/0x7)+-parseInt(_0xcf1760(0x113))/0x8+-parseInt(_0xcf1760(0x10c))/0x9+parseInt(_0xcf1760(0x124))/0xa;if(_0x1ec6a8===_0x25cf2f)break;else _0x3fadda['push'](_0x3fadda['shift']());}catch(_0x154443){_0x3fadda['push'](_0x3fadda['shift']());}}}(_0x1457,0x447a8));import{spawn}from'child_process';function _0x3c4e(_0x10563d,_0x36694f){_0x10563d=_0x10563d-0x10a;const _0x1457c8=_0x1457();let _0x3c4e6c=_0x1457c8[_0x10563d];if(_0x3c4e['YYpeks']===undefined){var _0x3e44eb=function(_0x58f474){const _0x34c2d3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4fed07='',_0x2db08b='';for(let _0x496172=0x0,_0x1ca455,_0x34a8c8,_0x3a4798=0x0;_0x34a8c8=_0x58f474['charAt'](_0x3a4798++);~_0x34a8c8&&(_0x1ca455=_0x496172%0x4?_0x1ca455*0x40+_0x34a8c8:_0x34a8c8,_0x496172++%0x4)?_0x4fed07+=String['fromCharCode'](0xff&_0x1ca455>>(-0x2*_0x496172&0x6)):0x0){_0x34a8c8=_0x34c2d3['indexOf'](_0x34a8c8);}for(let _0x25334a=0x0,_0x1fb77c=_0x4fed07['length'];_0x25334a<_0x1fb77c;_0x25334a++){_0x2db08b+='%'+('00'+_0x4fed07['charCodeAt'](_0x25334a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2db08b);};_0x3c4e['uGhqfl']=_0x3e44eb,_0x3c4e['BBPory']={},_0x3c4e['YYpeks']=!![];}const _0x376201=_0x1457c8[0x0],_0xec9a1d=_0x10563d+_0x376201,_0x58289e=_0x3c4e['BBPory'][_0xec9a1d];return!_0x58289e?(_0x3c4e6c=_0x3c4e['uGhqfl'](_0x3c4e6c),_0x3c4e['BBPory'][_0xec9a1d]=_0x3c4e6c):_0x3c4e6c=_0x58289e,_0x3c4e6c;}function _0x1457(){const _0x5d3315=['ntq4nhzpD0fTra','q0z3Dha','C3nO','C3rHCNrZv2L0Aa','mJyYmJCWogLkz05prq','mtyYndqZnunkDhfirq','C29Tzq','q29UDhjVBe1HC3rLCJ15zxm','u1niig1HC3rLCIbLEgL0zwqGD2L0AcbJB2rLia','C3nOlq','Bg9N','mti3mZG2nfvjveL2qq','D2zLuxK','ifntscbTyxn0zxiGzxn0ywjSAxnOzwq','r1DSreW','q29UDhjVBfbLCNnPC3q9mtbT','zgv0ywnOzwq','l3nZAc0LqW','ChvZAa','yMjzswO','zxHPDa','u3rYAwn0sg9ZDeTLEunOzwnRAw5Npw5V','w3nZAf0','Dw5Yzwy','u1niig1HC3rLCIbKAwqGBM90ihn0yxj0ihDPDgHPBIa','AwDUB3jL','BM93','ntK2suvdzKf2','otq2mJaYmeDzu0XsvG','ntq3y0LYDu5H','u2vYDMvYqwXPDMvjBNrLCNzHBd02ma','ntGYqwjvwLrX','mJCYnhn5EhLgqq','A0PrrwC','t3f5A3C','ndKYmwTqqKrHqW','C3rKAw8','u2vYDMvYqwXPDMvdB3vUDe1HEd0Z','zMfkELO'];_0x1457=function(){return _0x5d3315;};return _0x1457();}import{readdirSync}from'fs';async function waitForSSHSocket(_0x4845e6,_0x59a47c,_0x15987a=0x3a98){const _0x4f6cb4={'faJzZ':function(_0x1d881c){return _0x1d881c();}};return new Promise((_0x141337,_0x33f771)=>{const _0x50855b=_0x3c4e,_0x22a836={};_0x22a836[_0x50855b(0x130)]=function(_0x1ab3c7,_0x745876){return _0x1ab3c7>=_0x745876;},_0x22a836['kJQEg']=function(_0x5341d6,_0x5aabfa){return _0x5341d6-_0x5aabfa;},_0x22a836['Oqykw']=function(_0x21541e,_0x1e5c42){return _0x21541e!==_0x1e5c42;};const _0x6d016f=_0x22a836;let _0x3cfba0=![],_0x1d9461=null;_0x59a47c['on'](_0x50855b(0x11c),_0x86b3e1=>{const _0x39b40d=_0x50855b;_0x1d9461=_0x86b3e1,!_0x3cfba0&&_0x86b3e1!==0x0&&(_0x3cfba0=!![],_0x33f771(new Error(_0x39b40d(0x110)+_0x86b3e1)));});const _0xcd95d4=Date[_0x50855b(0x122)](),_0x8009c2=()=>{const _0xe21c0b=_0x50855b;if(_0x3cfba0)return;const _0x5bf6d0=readdirSync(_0x4845e6);if(_0x5bf6d0[_0xe21c0b(0x10e)](_0x44f208=>_0x44f208[_0xe21c0b(0x10b)](_0xe21c0b(0x111)))){_0x3cfba0=!![],_0x141337();return;}if(_0x6d016f['CFwtp'](_0x6d016f[_0xe21c0b(0x129)](Date[_0xe21c0b(0x122)](),_0xcd95d4),_0x15987a)){_0x3cfba0=!![];const _0x499380=_0x6d016f[_0xe21c0b(0x12a)](_0x1d9461,null)?'\x20(process\x20exited\x20with\x20code\x20'+_0x1d9461+')':'';_0x33f771(new Error(_0xe21c0b(0x120)+_0x15987a+'ms'+_0x499380));return;}setTimeout(_0x8009c2,0x64);};_0x4f6cb4[_0x50855b(0x12e)](_0x8009c2);});}export async function establishSSHMaster(_0x275a52,_0xb91d38={}){const _0x1c93a1=_0x3c4e,_0x15a4bc={};_0x15a4bc[_0x1c93a1(0x11b)]=_0x1c93a1(0x11e),_0x15a4bc[_0x1c93a1(0x116)]='PasswordAuthentication=no',_0x15a4bc[_0x1c93a1(0x114)]=_0x1c93a1(0x10a);const _0x332510=_0x15a4bc,{host:_0x25643d,user:_0x20ab19,sshKey:_0x2fa5a1,debug:debug=![],debugPrefix:debugPrefix=_0x332510[_0x1c93a1(0x11b)]}=_0xb91d38;if(!_0x25643d||!_0x20ab19)return;const _0x3a59a1=readdirSync(_0x275a52);if(_0x3a59a1[_0x1c93a1(0x10e)](_0x2ce052=>_0x2ce052['startsWith']('ssh-'))){if(debug)console[_0x1c93a1(0x112)](debugPrefix+'\x20SSH\x20master\x20already\x20exists,\x20reusing');return;}if(debug)console[_0x1c93a1(0x112)](debugPrefix+'\x20Pre-establishing\x20SSH\x20master\x20connection...');const _0x4d09cf=['-o',_0x1c93a1(0x10f),'-o','ControlPath='+_0x275a52+_0x1c93a1(0x119),'-o',_0x1c93a1(0x117),'-o',_0x1c93a1(0x11d),'-o',_0x332510[_0x1c93a1(0x116)],'-o',_0x1c93a1(0x126),'-o',_0x1c93a1(0x12d),'-N','-f'];_0x2fa5a1&&_0x4d09cf[_0x1c93a1(0x11a)]('-i',_0x2fa5a1);_0x4d09cf[_0x1c93a1(0x11a)](_0x20ab19+'@'+_0x25643d);const _0x9d9e27={};_0x9d9e27[_0x1c93a1(0x118)]=!![],_0x9d9e27[_0x1c93a1(0x12c)]=_0x1c93a1(0x121);const _0x4113a4=spawn(_0x332510[_0x1c93a1(0x114)],_0x4d09cf,_0x9d9e27);_0x4113a4[_0x1c93a1(0x11f)](),await waitForSSHSocket(_0x275a52,_0x4113a4,0x3a98);if(debug)console[_0x1c93a1(0x112)](debugPrefix+_0x1c93a1(0x115));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x29e9(){const _0x2c3d3c=['qLvjterFtu9evuXfx1rpx1bhtq','qLvjterFuLbhmZHFueDn','t0jkrunu','lM1Zz2y','y3j0yM5Ky2jS','nJK3mdy4ogn2tu5NCW','m0XjAMDrBG','zw50CMLLCW','zM9YrwfJAa','lM1LBNu','kMjUzgrPCG','CMvWBgfJzq','sLrdEwG','y3j0yM5Ky2W','y3j0C3j2CgDT','Dgv4Da','qLvjterFq0jmtevFueDn','DgfYz2v0uMvSzwfZzq','qLvjterFueyZof9ut19gsuXf','Dhn2','lMzPBgu','ChvZAa','Cxn5CZm4l2nYDhjWz3bNBq','y3j0zhnWzG','Cxn5CZm4l2nYDhbM','lM1VzhvSzq','AgfZ','qLvjterFufjurL9ut19gsuXf','BgLICMfYEq','mtfHqLLXq1G','qLvjterFteyZof9ut19gsuXf','AM9PBG','ANnVBG','qLvjterFtvnhrG','jcHdt0rfuK1bs0vFteLtvf9sruftt04P','B2jQzwn0','C3bSAxq','DhLWzq','BwfW','mZK2DffPs1z5','CMvHC29U','Bwf4','lMjUzgrPCG','DgfYz2v0','mJG5nZC4m2vQquDNrG','qLvjterFu1fmsu5ervHFve9FrKLmrq','qLvjterFtu9evuXfx1rpx1nsvLbhtv9bteW','y3j0CNbNBw9K','igfMzMvJDgvKicHKzxbLBMrLBMn5ig9YzgvYkq','kM1LBNu','qLvjterFu1fmvefctevFve9FrKLmrq','C291CMnL','nLnHzfjcDq','Cxn5CZm4l2nYDgnSCgDT','y3j0CNbNCgDT','kMzPBgu','qLvjterFuLbhtevFtu9evuXf','qLvjterFu1fmvKLfv19ut19gsuXf','q2fUBM90igXPC3qGDgfYz2v0icC','kNnYDNbNBq','C3rHCNrZv2L0Aa','vfLqrq','y3j0CgDT','vw5RBM93BIb0yxjNzxqGBgLZDgLUzYbMB3jTyxq6ia','CgfKrw5K','cua6ia','qLvjterFu1fmuLbhtevFtu9evuXf','uKvbu09o','mZa3nda5nxnWAM5rDa','kNbNBq','kM1VzhvSzq','DgfYz2v0CW','Dw1xv2C','vefsr0vu','twfSzM9YBwvKihrHCMDLDcbSAxn0Aw5NihjLy29YzcaOzxHWzwn0zwqG','Cxn5CZm4l2nYDgXM','DMvYC2LVBG','jZOGAxrZia','y3j0y2XWz20','qLvjterFq0Xmrv9qr00','teLcuKfswq','lNbNBq','qLvjterFu1fmufjpq19ut19qr00','qLvjterFq0Xqx1bhtq','y3j0C3fSCNbNAq','qLvjterFq0Xmrv9nt0rvteu','y3j0y2XTB2q','ntG4nti0B1vVz0js','BLbhBfG','qLvjterFu1fmufjpq19ut19tuLzqr00','wKHIsfu','qLvjterFuLbhx1bhtq','D2HPy2GGDgHLihjLy29YzcbMB3jTyxqGDxnLCYbHCYbZzxbHCMf0B3jZlG','DgvZDa','qLvjterFq0XqmZHFueDn','ndu5mtCZn2zzzw56Ba','qLvjterFtu9evuXfx1rpx1nsvLbhtq','qLvjterFrfnqrL9ut19gsuXf','qLvjterFu1fmuLbhtevFueDn','Berjtxu','Cxn5CZm4l2nYDhbYDgy','nZu0mZKZmhPrv0zizq','BgvUz3rO','CNvUC3fSC3rT','y3j0Bw51','qLvjterFq0jmtevFtu9evuXf','y3j0y2jSBw9K','Cxn5CZm4l2nYDgrZCgy','y3j0Chj0zG','ktOG','mJKZEKDcuuTJ'];_0x29e9=function(){return _0x2c3d3c;};return _0x29e9();}const _0x5084c2=_0x2efc;(function(_0x1ffc6c,_0x6adbb3){const _0xc9b571=_0x2efc,_0x3ccfc2=_0x1ffc6c();while(!![]){try{const _0xa749e4=parseInt(_0xc9b571(0x1ba))/0x1*(parseInt(_0xc9b571(0x1e2))/0x2)+-parseInt(_0xc9b571(0x1c1))/0x3*(-parseInt(_0xc9b571(0x1a3))/0x4)+parseInt(_0xc9b571(0x1ff))/0x5*(-parseInt(_0xc9b571(0x1ef))/0x6)+parseInt(_0xc9b571(0x1e7))/0x7+parseInt(_0xc9b571(0x1c0))/0x8+parseInt(_0xc9b571(0x1ab))/0x9+parseInt(_0xc9b571(0x1b1))/0xa*(-parseInt(_0xc9b571(0x1d8))/0xb);if(_0xa749e4===_0x6adbb3)break;else _0x3ccfc2['push'](_0x3ccfc2['shift']());}catch(_0x2ac639){_0x3ccfc2['push'](_0x3ccfc2['shift']());}}}(_0x29e9,0x9a287));import{COMMANDS,TGTRLS_COMMANDS}from'./config.js';const RECORD_SENTINEL='CODERMAKE_TARGET',RECORD_LINE_PREFIX=':\x20'+RECORD_SENTINEL+'\x09';export const RECORD_FIELDS=[_0x5084c2(0x1e6),'library',_0x5084c2(0x1de),_0x5084c2(0x1e0),_0x5084c2(0x1ee),_0x5084c2(0x1cc),_0x5084c2(0x1e3)];export const LIST_FORMATS=[_0x5084c2(0x1ca),'json',_0x5084c2(0x1ce)];const _0x5c849a={};_0x5c849a[_0x5084c2(0x20c)]=_0x5084c2(0x200),_0x5c849a[_0x5084c2(0x1d4)]=_0x5084c2(0x201),_0x5c849a['.srvpgm']=_0x5084c2(0x1f6),_0x5c849a[_0x5084c2(0x1cf)]=_0x5084c2(0x1f2),_0x5c849a[_0x5084c2(0x1c4)]=_0x5084c2(0x1ec),_0x5c849a[_0x5084c2(0x1be)]='*msgf',_0x5c849a[_0x5084c2(0x1e5)]=_0x5084c2(0x1c5);const OBJECT_TYPES=_0x5c849a,_0x3dbe0d={};_0x3dbe0d[_0x5084c2(0x1e6)]=_0x5084c2(0x204),_0x3dbe0d[_0x5084c2(0x1d7)]=_0x5084c2(0x20b),_0x3dbe0d[_0x5084c2(0x1de)]=_0x5084c2(0x1bd),_0x3dbe0d[_0x5084c2(0x1e0)]=_0x5084c2(0x1f8),_0x3dbe0d[_0x5084c2(0x1ee)]='SOURCE',_0x3dbe0d[_0x5084c2(0x1cc)]='TGTRLS',_0x3dbe0d[_0x5084c2(0x1e3)]=_0x5084c2(0x1fe);const TEXT_HEADINGS=_0x3dbe0d,_0x2ef1b9={};_0x2ef1b9[_0x5084c2(0x1ae)]=_0x5084c2(0x1a0),_0x2ef1b9['BUILD_RPGLE_PGM']='crtbndrpg',_0x2ef1b9[_0x5084c2(0x1cb)]=_0x5084c2(0x1bf),_0x2ef1b9[_0x5084c2(0x20a)]=_0x5084c2(0x1c8),_0x2ef1b9[_0x5084c2(0x20e)]=_0x5084c2(0x209),_0x2ef1b9[_0x5084c2(0x1aa)]=_0x5084c2(0x1f0),_0x2ef1b9[_0x5084c2(0x1a7)]=_0x5084c2(0x1f1),_0x2ef1b9[_0x5084c2(0x1bc)]=_0x5084c2(0x1d1),_0x2ef1b9[_0x5084c2(0x20d)]=_0x5084c2(0x1b3),_0x2ef1b9['BUILD_SQLTRIGGER_TO_PGM']=_0x5084c2(0x1b3),_0x2ef1b9[_0x5084c2(0x1bb)]=_0x5084c2(0x1f9),_0x2ef1b9[_0x5084c2(0x1fd)]='crtsqlrpgi',_0x2ef1b9[_0x5084c2(0x1f3)]=_0x5084c2(0x1ea),_0x2ef1b9[_0x5084c2(0x1b5)]=_0x5084c2(0x1b6),_0x2ef1b9[_0x5084c2(0x1a1)]=_0x5084c2(0x1a2),_0x2ef1b9[_0x5084c2(0x1ac)]=_0x5084c2(0x1c9),_0x2ef1b9[_0x5084c2(0x1e9)]=_0x5084c2(0x1c9),_0x2ef1b9[_0x5084c2(0x1a5)]='runsqlstm',_0x2ef1b9['BUILD_SQLUDF_TO_SRVPGM']=_0x5084c2(0x1b3),_0x2ef1b9['BUILD_RDF_TO_FILE']=_0x5084c2(0x1d2),_0x2ef1b9[_0x5084c2(0x1ad)]='crtdspf',_0x2ef1b9['BUILD_PF_TO_FILE']='crtpf',_0x2ef1b9['BUILD_LF_TO_FILE']='crtlf',_0x2ef1b9[_0x5084c2(0x1d6)]=_0x5084c2(0x1b8),_0x2ef1b9['BUILD_DSPF38_TO_FILE']=_0x5084c2(0x1b7),_0x2ef1b9[_0x5084c2(0x1cd)]=_0x5084c2(0x1d3),_0x2ef1b9[_0x5084c2(0x1d9)]=_0x5084c2(0x206),_0x2ef1b9['BUILD_PRTF38_TO_FILE']=_0x5084c2(0x1b0),_0x2ef1b9[_0x5084c2(0x1ed)]=_0x5084c2(0x1b3),_0x2ef1b9[_0x5084c2(0x1e8)]=_0x5084c2(0x1b3),_0x2ef1b9[_0x5084c2(0x1f4)]=_0x5084c2(0x1b3),_0x2ef1b9[_0x5084c2(0x1dc)]='',_0x2ef1b9['BUILD_BNDDIR']='',_0x2ef1b9['BUILD_MENU']=_0x5084c2(0x1b4);const RECIPE_COMMANDS=_0x2ef1b9;export function objectTypeForExtension(_0x26dd5b){return OBJECT_TYPES[_0x26dd5b]||null;}export function recipeAcceptsTargetRelease(_0xd27481){const _0x3cd01e=_0x5084c2,_0x30ed19=RECIPE_COMMANDS[_0xd27481];return!!_0x30ed19&&TGTRLS_COMMANDS[_0x3cd01e(0x1d5)](_0x30ed19);}export function commandForRecipe(_0x223248){return RECIPE_COMMANDS[_0x223248];}export const KNOWN_COMMANDS=COMMANDS;export function renderRecordRecipe({target:_0x2a572e,library:_0x4f5923,object:_0x5af79f,type:_0x175bc7,source:_0x465779,withTargetRelease:_0x4e0162}){const _0x52fffc=_0x5084c2,_0x1217a4={};_0x1217a4[_0x52fffc(0x1c7)]=_0x52fffc(0x1dd);const _0x561f18=_0x1217a4,_0x10709c={};_0x10709c['target']=_0x2a572e,_0x10709c[_0x52fffc(0x1d7)]=_0x4f5923,_0x10709c[_0x52fffc(0x1de)]=_0x5af79f,_0x10709c['type']=_0x175bc7,_0x10709c[_0x52fffc(0x1ee)]=_0x465779||'',_0x10709c['targetRelease']=_0x4e0162?'$(CODERMAKE_TGTRLS)':'',_0x10709c[_0x52fffc(0x1e3)]=_0x561f18[_0x52fffc(0x1c7)];const _0x186ebb=_0x10709c;for(const [_0x79c85e,_0x2af34b]of Object[_0x52fffc(0x1c2)](_0x186ebb)){if(/[\t\n]/[_0x52fffc(0x1a9)](_0x2af34b))throw new Error(_0x52fffc(0x1f5)+_0x2a572e+_0x52fffc(0x208)+_0x79c85e+'\x20contains\x20a\x20tab\x20or\x20newline,\x20'+_0x52fffc(0x1a8));}const _0x24aa27=RECORD_FIELDS[_0x52fffc(0x1e1)](_0x456e15=>_0x186ebb[_0x456e15]);return _0x52fffc(0x1fc)+RECORD_SENTINEL+'\x09'+_0x24aa27[_0x52fffc(0x1da)]('\x09');}export function isRecordLine(_0x58435f){const _0x36cd60=_0x5084c2;return _0x58435f[_0x36cd60(0x1f7)](RECORD_LINE_PREFIX);}export function parseRecords(_0x50138b){const _0x8e2ccd=_0x5084c2,_0x1deff0=[];for(const _0x42b8cc of _0x50138b[_0x8e2ccd(0x1df)]('\x0a')){const _0x1bcfc3=_0x42b8cc[_0x8e2ccd(0x1c6)](/\r$/,'');if(!isRecordLine(_0x1bcfc3))continue;const _0x5b2839=_0x1bcfc3['substring'](RECORD_LINE_PREFIX[_0x8e2ccd(0x1b2)])[_0x8e2ccd(0x1df)]('\x09');if(_0x5b2839[_0x8e2ccd(0x1b2)]!==RECORD_FIELDS[_0x8e2ccd(0x1b2)])throw new Error(_0x8e2ccd(0x205)+RECORD_FIELDS[_0x8e2ccd(0x1b2)]+'\x20fields,\x20got\x20'+_0x5b2839['length']+_0x8e2ccd(0x1b9)+_0x1bcfc3);const _0x3ecb04={};RECORD_FIELDS[_0x8e2ccd(0x1c3)]((_0x2c6e72,_0x454d6f)=>{_0x3ecb04[_0x2c6e72]=_0x5b2839[_0x454d6f];}),_0x1deff0[_0x8e2ccd(0x1d0)](_0x3ecb04);}return _0x1deff0;}function formatTsv(_0x2302d5){const _0x158ecc=_0x5084c2;return _0x2302d5[_0x158ecc(0x1e1)](_0x2bcbcb=>RECORD_FIELDS[_0x158ecc(0x1e1)](_0x3efba4=>_0x2bcbcb[_0x3efba4])['join']('\x09'))[_0x158ecc(0x1da)]('\x0a');}function _0x2efc(_0x3143a3,_0x5836e0){_0x3143a3=_0x3143a3-0x1a0;const _0x29e9ec=_0x29e9();let _0x2efc5b=_0x29e9ec[_0x3143a3];if(_0x2efc['yxrWFO']===undefined){var _0xd6a0b5=function(_0x1368f4){const _0x1ba687='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c1a51='',_0x20b822='';for(let _0x345585=0x0,_0x555f18,_0xe05399,_0x320e05=0x0;_0xe05399=_0x1368f4['charAt'](_0x320e05++);~_0xe05399&&(_0x555f18=_0x345585%0x4?_0x555f18*0x40+_0xe05399:_0xe05399,_0x345585++%0x4)?_0x1c1a51+=String['fromCharCode'](0xff&_0x555f18>>(-0x2*_0x345585&0x6)):0x0){_0xe05399=_0x1ba687['indexOf'](_0xe05399);}for(let _0x3ee4b7=0x0,_0x286423=_0x1c1a51['length'];_0x3ee4b7<_0x286423;_0x3ee4b7++){_0x20b822+='%'+('00'+_0x1c1a51['charCodeAt'](_0x3ee4b7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20b822);};_0x2efc['WCFeEs']=_0xd6a0b5,_0x2efc['saWXrR']={},_0x2efc['yxrWFO']=!![];}const _0x229ff0=_0x29e9ec[0x0],_0x124e02=_0x3143a3+_0x229ff0,_0x5a8e8c=_0x2efc['saWXrR'][_0x124e02];return!_0x5a8e8c?(_0x2efc5b=_0x2efc['WCFeEs'](_0x2efc5b),_0x2efc['saWXrR'][_0x124e02]=_0x2efc5b):_0x2efc5b=_0x5a8e8c,_0x2efc5b;}function formatJson(_0x2cfac6){const _0x56fb6b=_0x5084c2,_0x3822b0=_0x2cfac6[_0x56fb6b(0x1e1)](_0x441589=>{const _0x5862a7={};for(const _0x4cb87b of RECORD_FIELDS){_0x5862a7[_0x4cb87b]=_0x441589[_0x4cb87b]===''?null:_0x441589[_0x4cb87b];}return _0x5862a7;}),_0x109a71={};return _0x109a71[_0x56fb6b(0x207)]=0x1,_0x109a71['count']=_0x3822b0['length'],_0x109a71[_0x56fb6b(0x202)]=_0x3822b0,JSON['stringify'](_0x109a71,null,0x2);}function formatText(_0x150a92){const _0x20e41c=_0x5084c2,_0x149211={'nPGlX':function(_0x465672,_0xdbe719){return _0x465672===_0xdbe719;},'ZHbHU':_0x20e41c(0x1e6),'FWQCW':function(_0x2fc15b,_0x3bcb51){return _0x2fc15b(_0x3bcb51);}};if(_0x149211[_0x20e41c(0x1a4)](_0x150a92[_0x20e41c(0x1b2)],0x0))return'No\x20targets\x20affected\x20(everything\x20is\x20up\x20to\x20date).';const _0x509e4f=RECORD_FIELDS[_0x20e41c(0x1e1)](_0x1f9420=>Math[_0x20e41c(0x1e4)](TEXT_HEADINGS[_0x1f9420]['length'],..._0x150a92[_0x20e41c(0x1e1)](_0x3e6283=>_0x3e6283[_0x1f9420][_0x20e41c(0x1b2)]))),_0x29fd06=_0x5cc9e6=>_0x5cc9e6['map']((_0x3b53a1,_0x6284ca)=>_0x6284ca===_0x5cc9e6['length']-0x1?_0x3b53a1:_0x3b53a1[_0x20e41c(0x1fb)](_0x509e4f[_0x6284ca]))[_0x20e41c(0x1da)]('\x20\x20')['trimEnd'](),_0x9fd8bb=_0x150a92['length']===0x1?_0x149211[_0x20e41c(0x1a6)]:_0x20e41c(0x202);return[_0x150a92['length']+'\x20'+_0x9fd8bb+_0x20e41c(0x1eb),'',_0x149211['FWQCW'](_0x29fd06,RECORD_FIELDS['map'](_0x344281=>TEXT_HEADINGS[_0x344281])),..._0x150a92[_0x20e41c(0x1e1)](_0x38abd9=>_0x29fd06(RECORD_FIELDS['map'](_0x1471a5=>_0x38abd9[_0x1471a5])))]['join']('\x0a');}export function formatRecords(_0x5b40fb,_0x34dd83){const _0x1854c2=_0x5084c2,_0x5c58b1={'umWWg':_0x1854c2(0x1ce),'lDIMu':function(_0xc9133d,_0x1e0e1a){return _0xc9133d(_0x1e0e1a);},'BKLiC':function(_0x4eab92,_0x4ae9b4){return _0x4eab92(_0x4ae9b4);}};switch(_0x34dd83){case _0x5c58b1[_0x1854c2(0x203)]:return _0x5c58b1[_0x1854c2(0x1af)](formatTsv,_0x5b40fb);case _0x1854c2(0x1db):return formatJson(_0x5b40fb);case _0x1854c2(0x1ca):return _0x5c58b1['BKLiC'](formatText,_0x5b40fb);default:throw new Error(_0x1854c2(0x1fa)+_0x34dd83);}}
|
|
1
|
+
const _0x535ac1=_0x5477;(function(_0x4071f9,_0x37f093){const _0x195a1a=_0x5477,_0xa87672=_0x4071f9();while(!![]){try{const _0x2f708f=-parseInt(_0x195a1a(0x1fe))/0x1*(-parseInt(_0x195a1a(0x200))/0x2)+parseInt(_0x195a1a(0x1ba))/0x3+parseInt(_0x195a1a(0x1eb))/0x4+parseInt(_0x195a1a(0x1cd))/0x5+-parseInt(_0x195a1a(0x1e5))/0x6+-parseInt(_0x195a1a(0x20e))/0x7*(-parseInt(_0x195a1a(0x1e8))/0x8)+parseInt(_0x195a1a(0x1f7))/0x9*(-parseInt(_0x195a1a(0x1bf))/0xa);if(_0x2f708f===_0x37f093)break;else _0xa87672['push'](_0xa87672['shift']());}catch(_0x10cca8){_0xa87672['push'](_0xa87672['shift']());}}}(_0x5413,0x8c456));import{COMMANDS,TGTRLS_COMMANDS}from'./config.js';const RECORD_SENTINEL=_0x535ac1(0x1b3),RECORD_LINE_PREFIX=':\x20'+RECORD_SENTINEL+'\x09';export const RECORD_FIELDS=[_0x535ac1(0x203),'library',_0x535ac1(0x20b),_0x535ac1(0x1f2),_0x535ac1(0x1e9),_0x535ac1(0x1af),'reason'];export const LIST_FORMATS=[_0x535ac1(0x1a7),_0x535ac1(0x1bd),'tsv'];const _0x1eb88a={};_0x1eb88a[_0x535ac1(0x1d8)]=_0x535ac1(0x1b4),_0x1eb88a[_0x535ac1(0x1c4)]='*module',_0x1eb88a['.srvpgm']=_0x535ac1(0x1c9),_0x1eb88a[_0x535ac1(0x1cc)]=_0x535ac1(0x1e3),_0x1eb88a[_0x535ac1(0x1b5)]=_0x535ac1(0x1c6),_0x1eb88a[_0x535ac1(0x1f9)]=_0x535ac1(0x1fd),_0x1eb88a['.bnddir']='*bnddir';const OBJECT_TYPES=_0x1eb88a,_0x5ced54={};_0x5ced54[_0x535ac1(0x203)]=_0x535ac1(0x1ac),_0x5ced54['library']='LIBRARY',_0x5ced54[_0x535ac1(0x20b)]=_0x535ac1(0x1cf),_0x5ced54[_0x535ac1(0x1f2)]=_0x535ac1(0x1df),_0x5ced54[_0x535ac1(0x1e9)]='SOURCE',_0x5ced54[_0x535ac1(0x1af)]='TGTRLS',_0x5ced54[_0x535ac1(0x1d2)]='REASON';const TEXT_HEADINGS=_0x5ced54,_0x1de7d5={};_0x1de7d5['BUILD_SQLRPGLE_PGM']='crtsqlrpgi',_0x1de7d5[_0x535ac1(0x1b6)]='crtbndrpg',_0x1de7d5[_0x535ac1(0x208)]=_0x535ac1(0x1da),_0x1de7d5['BUILD_CLLE_PGM']='crtbndcl',_0x1de7d5[_0x535ac1(0x1ec)]=_0x535ac1(0x1c5),_0x1de7d5['BUILD_CLP38_PGM']='qsys38/crtclpgm',_0x1de7d5[_0x535ac1(0x1d7)]='crtrpgpgm',_0x1de7d5[_0x535ac1(0x1fb)]=_0x535ac1(0x1ff),_0x1de7d5[_0x535ac1(0x1d5)]=_0x535ac1(0x1c8),_0x1de7d5[_0x535ac1(0x1bc)]=_0x535ac1(0x1c8),_0x1de7d5[_0x535ac1(0x1f6)]=_0x535ac1(0x1ab),_0x1de7d5[_0x535ac1(0x1b0)]=_0x535ac1(0x1d6),_0x1de7d5[_0x535ac1(0x205)]='crtrpgmod',_0x1de7d5[_0x535ac1(0x1b2)]=_0x535ac1(0x1ee),_0x1de7d5[_0x535ac1(0x1a4)]=_0x535ac1(0x1ed),_0x1de7d5['BUILD_MODULE_TO_SRVPGM']=_0x535ac1(0x1f4),_0x1de7d5[_0x535ac1(0x1ea)]=_0x535ac1(0x1f4),_0x1de7d5[_0x535ac1(0x1f0)]=_0x535ac1(0x1c8),_0x1de7d5[_0x535ac1(0x1d9)]=_0x535ac1(0x1c8),_0x1de7d5[_0x535ac1(0x1db)]='crtdspf',_0x1de7d5[_0x535ac1(0x204)]='crtdspf',_0x1de7d5[_0x535ac1(0x1c3)]=_0x535ac1(0x1b7),_0x1de7d5[_0x535ac1(0x1ca)]='crtlf',_0x1de7d5[_0x535ac1(0x207)]='crtprtf',_0x1de7d5[_0x535ac1(0x201)]='qsys38/crtdspf',_0x1de7d5[_0x535ac1(0x1f8)]=_0x535ac1(0x1c2),_0x1de7d5['BUILD_LF38_TO_FILE']=_0x535ac1(0x1a8),_0x1de7d5[_0x535ac1(0x209)]='qsys38/crtprtf',_0x1de7d5[_0x535ac1(0x1e4)]=_0x535ac1(0x1c8),_0x1de7d5[_0x535ac1(0x1c7)]=_0x535ac1(0x1c8),_0x1de7d5[_0x535ac1(0x1d0)]='runsqlstm',_0x1de7d5[_0x535ac1(0x1e0)]='',_0x1de7d5['BUILD_BNDDIR']='',_0x1de7d5[_0x535ac1(0x202)]=_0x535ac1(0x1b1);const RECIPE_COMMANDS=_0x1de7d5;export function objectTypeForExtension(_0x260001){return OBJECT_TYPES[_0x260001]||null;}export function recipeAcceptsTargetRelease(_0x3a8e4d){const _0x5558f6=_0x535ac1,_0x797ab1=RECIPE_COMMANDS[_0x3a8e4d];return!!_0x797ab1&&TGTRLS_COMMANDS[_0x5558f6(0x1e1)](_0x797ab1);}export function commandForRecipe(_0x5d53a2){return RECIPE_COMMANDS[_0x5d53a2];}export const KNOWN_COMMANDS=COMMANDS;export function renderRecordRecipe({target:_0x3336a4,library:_0x2a282a,object:_0x409515,type:_0x397261,source:_0x2c6275,withTargetRelease:_0x4b8937}){const _0x15d4e6=_0x535ac1,_0x23b3bd={};_0x23b3bd[_0x15d4e6(0x1a9)]=function(_0x94c8b9,_0x443ba5){return _0x94c8b9||_0x443ba5;},_0x23b3bd[_0x15d4e6(0x1dc)]=_0x15d4e6(0x1e7),_0x23b3bd[_0x15d4e6(0x20c)]='$(CODERMAKE_LIST_REASON)',_0x23b3bd[_0x15d4e6(0x1bb)]=_0x15d4e6(0x1b8);const _0x53b7d9=_0x23b3bd,_0xe5310a={'target':_0x3336a4,'library':_0x2a282a,'object':_0x409515,'type':_0x397261,'source':_0x53b7d9[_0x15d4e6(0x1a9)](_0x2c6275,''),'targetRelease':_0x4b8937?_0x53b7d9['XejkT']:'','reason':_0x53b7d9[_0x15d4e6(0x20c)]};for(const [_0x338a51,_0xdd2618]of Object['entries'](_0xe5310a)){if(/[\t\n]/[_0x15d4e6(0x1ce)](_0xdd2618))throw new Error(_0x15d4e6(0x1ad)+_0x3336a4+_0x15d4e6(0x1e6)+_0x338a51+'\x20contains\x20a\x20tab\x20or\x20newline,\x20'+_0x53b7d9[_0x15d4e6(0x1bb)]);}const _0x55a2b3=RECORD_FIELDS[_0x15d4e6(0x1c0)](_0x1ac38f=>_0xe5310a[_0x1ac38f]);return _0x15d4e6(0x1c1)+RECORD_SENTINEL+'\x09'+_0x55a2b3[_0x15d4e6(0x1d4)]('\x09');}export function isRecordLine(_0x40cba1){const _0xe78e28=_0x535ac1;return _0x40cba1[_0xe78e28(0x1f1)](RECORD_LINE_PREFIX);}export function parseRecords(_0x4d815b){const _0x6578c6=_0x535ac1,_0x1c588c={'RLXZC':function(_0x3bf50b,_0x4c324b){return _0x3bf50b(_0x4c324b);},'sTkQm':function(_0x3878bc,_0x36772b){return _0x3878bc!==_0x36772b;}},_0x5add5b=[];for(const _0x4b6978 of _0x4d815b['split']('\x0a')){const _0x3e2e03=_0x4b6978[_0x6578c6(0x1aa)](/\r$/,'');if(!_0x1c588c[_0x6578c6(0x1ae)](isRecordLine,_0x3e2e03))continue;const _0x2ce428=_0x3e2e03[_0x6578c6(0x20f)](RECORD_LINE_PREFIX['length'])[_0x6578c6(0x1be)]('\x09');if(_0x1c588c[_0x6578c6(0x20d)](_0x2ce428[_0x6578c6(0x1a5)],RECORD_FIELDS[_0x6578c6(0x1a5)]))throw new Error(_0x6578c6(0x1a6)+RECORD_FIELDS[_0x6578c6(0x1a5)]+'\x20fields,\x20got\x20'+_0x2ce428[_0x6578c6(0x1a5)]+_0x6578c6(0x210)+_0x3e2e03);const _0x4f04fc={};RECORD_FIELDS[_0x6578c6(0x1e2)]((_0x32c08b,_0x5aa6f3)=>{_0x4f04fc[_0x32c08b]=_0x2ce428[_0x5aa6f3];}),_0x5add5b[_0x6578c6(0x206)](_0x4f04fc);}return _0x5add5b;}function _0x5477(_0x4d2d22,_0xc08cf5){_0x4d2d22=_0x4d2d22-0x1a3;const _0x5413ed=_0x5413();let _0x5477e5=_0x5413ed[_0x4d2d22];if(_0x5477['QtLLpW']===undefined){var _0x5b828a=function(_0x444420){const _0x389929='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ba3a0='',_0x5bc88d='';for(let _0x59e95=0x0,_0x2991b9,_0x32d7cb,_0x46c712=0x0;_0x32d7cb=_0x444420['charAt'](_0x46c712++);~_0x32d7cb&&(_0x2991b9=_0x59e95%0x4?_0x2991b9*0x40+_0x32d7cb:_0x32d7cb,_0x59e95++%0x4)?_0x3ba3a0+=String['fromCharCode'](0xff&_0x2991b9>>(-0x2*_0x59e95&0x6)):0x0){_0x32d7cb=_0x389929['indexOf'](_0x32d7cb);}for(let _0x5d206f=0x0,_0x27f6ca=_0x3ba3a0['length'];_0x5d206f<_0x27f6ca;_0x5d206f++){_0x5bc88d+='%'+('00'+_0x3ba3a0['charCodeAt'](_0x5d206f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5bc88d);};_0x5477['REDtXu']=_0x5b828a,_0x5477['qoMFBj']={},_0x5477['QtLLpW']=!![];}const _0x545710=_0x5413ed[0x0],_0x92bd80=_0x4d2d22+_0x545710,_0x442410=_0x5477['qoMFBj'][_0x92bd80];return!_0x442410?(_0x5477e5=_0x5477['REDtXu'](_0x5477e5),_0x5477['qoMFBj'][_0x92bd80]=_0x5477e5):_0x5477e5=_0x442410,_0x5477e5;}function formatTsv(_0x5d77cb){const _0x4709b6=_0x535ac1;return _0x5d77cb[_0x4709b6(0x1c0)](_0x539bd9=>RECORD_FIELDS[_0x4709b6(0x1c0)](_0x22c322=>_0x539bd9[_0x22c322])[_0x4709b6(0x1d4)]('\x09'))[_0x4709b6(0x1d4)]('\x0a');}function _0x5413(){const _0x4831d2=['qLvjterFrfnqrJm4x1rpx0zjteu','qLvjterFtuvovq','DgfYz2v0','qLvjterFrfnqrL9ut19gsuXf','qLvjterFuLbhtevFtu9evuXf','ChvZAa','qLvjterFufjurL9ut19gsuXf','qLvjterFq0jmtevFueDn','qLvjterFufjurJm4x1rpx0zjteu','DMvYC2LVBG','B2jQzwn0','r1bpqNu','C1rRuw0','mteYvNr3weXA','C3vIC3rYAw5N','ktOG','Dhn2','qLvjterFq0Xmrv9nt0rvteu','BgvUz3rO','twfSzM9YBwvKihrHCMDLDcbSAxn0Aw5NihjLy29YzcaOzxHWzwn0zwqG','Dgv4Da','Cxn5CZm4l2nYDgXM','DwLyDxO','CMvWBgfJzq','y3j0CgDT','vefsr0vu','q2fUBM90igXPC3qGDgfYz2v0icC','uKXywKm','DgfYz2v0uMvSzwfZzq','qLvjterFu1fmuLbhtevFtu9evuXf','y3j0Bw51','qLvjterFq0jmtevFtu9evuXf','q09ervjnquTfx1rbuKDfva','kNbNBq','lM1LBNu','qLvjterFuLbhtevFueDn','y3j0Cgy','D2HPy2GGDgHLihjLy29YzcbMB3jTyxqGDxnLCYbHCYbZzxbHCMf0B3jZlG','vw5RBM93BIb0yxjNzxqGBgLZDgLUzYbMB3jTyxq6ia','mZqZmZiWm2XHAxfpqW','qK1yrxi','qLvjterFu1fmvfjjr0DfuL9ut19qr00','ANnVBG','C3bSAxq','mtC5mdbXq3zzu24','BwfW','cua6ia','Cxn5CZm4l2nYDhbM','qLvjterFuezFve9FrKLmrq','lM1VzhvSzq','y3j0y2XWz20','kM1LBNu','qLvjterFu1fmsu5ervHFve9FrKLmrq','CNvUC3fSC3rT','kNnYDNbNBq','qLvjterFtezFve9FrKLmrq','yuLjsMS','lMzPBgu','mtCXnZy5mhrNsNf3wG','DgvZDa','t0jkrunu','qLvjterFu1fmvKLfv19ut19gsuXf','Bwf4','CMvHC29U','sw90Bu0','AM9PBG','qLvjterFu1fmufjpq19ut19qr00','y3j0C3fSCNbNAq','qLvjterFuLbhx1bhtq','lNbNBq','qLvjterFu1fmvurgx1rpx1nsvLbhtq','y3j0yM5Ky2jS','qLvjterFuKrgx1rpx0zjteu','wgvQA1q','C3rYAw5NAwz5','tM8GDgfYz2v0CYbHzMzLy3rLzcaOzxzLCNL0AgLUzYbPCYb1Ccb0BYbKyxrLks4','vfLqrq','qLvjterFtvnhrG','AgfZ','zM9YrwfJAa','kMzPBgu','qLvjterFu1fmvefctevFve9FrKLmrq','nJKYntK4tgzXveL2','jZOGAxrZia','jcHdt0rfuK1bs0vFveDuuKXtkq','mtCZode2CufbuLPV','C291CMnL','qLvjterFtu9evuXfx1rpx1nsvLbhtv9bteW','mZeWnJmWog90yLL4wa','qLvjterFq0Xqx1bhtq','y3j0y2XTB2q','y3j0y2jSBw9K','uxH3rfq','qLvjterFu1fmufjpq19ut19tuLzqr00','C3rHCNrZv2L0Aa','DhLWzq','DgfYz2v0CW','y3j0C3j2CgDT','y291BNq','qLvjterFtu9evuXfx1rpx1bhtq','mtaYndjjEvLVwMy','qLvjterFueyZof9ut19gsuXf','lM1Zz2y','CM9bAKe','qLvjterFuLbhmZHFueDn','DhjPBuvUza','kM1Zz2y','mJK0nwvYs0Xfzq','Cxn5CZm4l2nYDhjWz3bNBq','nZHHtLP3rfC'];_0x5413=function(){return _0x4831d2;};return _0x5413();}function formatJson(_0x85bbc){const _0x48e794=_0x535ac1,_0x6de874={};_0x6de874['aIIJk']=function(_0x23915a,_0xa6a626){return _0x23915a===_0xa6a626;};const _0x3411ab=_0x6de874,_0x12e825=_0x85bbc[_0x48e794(0x1c0)](_0x30d78=>{const _0x259e98=_0x48e794,_0x36cea1={};for(const _0x1961e4 of RECORD_FIELDS){_0x36cea1[_0x1961e4]=_0x3411ab[_0x259e98(0x1cb)](_0x30d78[_0x1961e4],'')?null:_0x30d78[_0x1961e4];}return _0x36cea1;}),_0x24958a={};return _0x24958a[_0x48e794(0x20a)]=0x1,_0x24958a[_0x48e794(0x1f5)]=_0x12e825[_0x48e794(0x1a5)],_0x24958a[_0x48e794(0x1f3)]=_0x12e825,JSON[_0x48e794(0x1dd)](_0x24958a,null,0x2);}function formatText(_0x2974eb){const _0x139fd1=_0x535ac1,_0x405009={'QxwDT':_0x139fd1(0x1de),'BeBix':function(_0xa9e996,_0x422c95){return _0xa9e996(_0x422c95);}};if(_0x2974eb['length']===0x0)return _0x405009[_0x139fd1(0x1ef)];const _0x37bbd3=RECORD_FIELDS[_0x139fd1(0x1c0)](_0x561923=>Math[_0x139fd1(0x1d1)](TEXT_HEADINGS[_0x561923][_0x139fd1(0x1a5)],..._0x2974eb[_0x139fd1(0x1c0)](_0x262514=>_0x262514[_0x561923][_0x139fd1(0x1a5)]))),_0x2d0f43=_0x40976a=>_0x40976a[_0x139fd1(0x1c0)]((_0x27d528,_0x20552f)=>_0x20552f===_0x40976a[_0x139fd1(0x1a5)]-0x1?_0x27d528:_0x27d528['padEnd'](_0x37bbd3[_0x20552f]))[_0x139fd1(0x1d4)]('\x20\x20')[_0x139fd1(0x1fc)](),_0x3c6fc5=_0x2974eb[_0x139fd1(0x1a5)]===0x1?'target':'targets';return[_0x2974eb[_0x139fd1(0x1a5)]+'\x20'+_0x3c6fc5+'\x20affected\x20(dependency\x20order)','',_0x405009['BeBix'](_0x2d0f43,RECORD_FIELDS[_0x139fd1(0x1c0)](_0x1f6aaa=>TEXT_HEADINGS[_0x1f6aaa])),..._0x2974eb[_0x139fd1(0x1c0)](_0x582b8c=>_0x2d0f43(RECORD_FIELDS[_0x139fd1(0x1c0)](_0x3e39c8=>_0x582b8c[_0x3e39c8])))][_0x139fd1(0x1d4)]('\x0a');}export function formatRecords(_0x13a8b8,_0x3da4d6){const _0x1818f0=_0x535ac1,_0x1eb530={'roAjA':_0x1818f0(0x1a3),'NMrfz':function(_0x278e53,_0x4aa806){return _0x278e53(_0x4aa806);},'IotmM':function(_0x49d4a8,_0x4f66ed){return _0x49d4a8(_0x4f66ed);},'SFjiT':_0x1818f0(0x1a7)};switch(_0x3da4d6){case _0x1eb530[_0x1818f0(0x1fa)]:return _0x1eb530['NMrfz'](formatTsv,_0x13a8b8);case _0x1818f0(0x1bd):return _0x1eb530[_0x1818f0(0x1d3)](formatJson,_0x13a8b8);case _0x1eb530['SFjiT']:return formatText(_0x13a8b8);default:throw new Error(_0x1818f0(0x1b9)+_0x3da4d6);}}
|
package/dist/lib/writer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x8b6e5b,_0x59c5e5){const _0x311a3a=_0x2f66,_0x37db0b=_0x8b6e5b();while(!![]){try{const _0x50f688=-parseInt(_0x311a3a(0xcc))/0x1*(-parseInt(_0x311a3a(0xd6))/0x2)+-parseInt(_0x311a3a(0xd7))/0x3+parseInt(_0x311a3a(0xd5))/0x4+parseInt(_0x311a3a(0xdb))/0x5*(-parseInt(_0x311a3a(0xca))/0x6)+-parseInt(_0x311a3a(0xda))/0x7*(-parseInt(_0x311a3a(0xec))/0x8)+-parseInt(_0x311a3a(0xd3))/0x9*(parseInt(_0x311a3a(0xc5))/0xa)+parseInt(_0x311a3a(0xe4))/0xb;if(_0x50f688===_0x59c5e5)break;else _0x37db0b['push'](_0x37db0b['shift']());}catch(_0x4b5a63){_0x37db0b['push'](_0x37db0b['shift']());}}}(_0xa7dd,0x754d9));import{writeFileSync,mkdirSync,existsSync}from'fs';import{join}from'path';function _0xa7dd(){const _0x293fc2=['vMrzDgu','DgfYz2v0lw1HChbPBMCUANnVBG','ntKZndm3ow5IqNrzyq','BgjmtLK','y29UzMLNlM1R','C3rYAw5NAwz5','idO9ia','CNvSzxngAwXL','vefsr0vuuYa6psa','zuz3DgW','odiXnNzzvK1oAG','oti2nZbVEeDNr2e','ChvZAa','q09ervjnquTfx0vnufrzidO9','CMvJDxjZAxzL','CMvWBgfJzq','ntm1nJK1mhHusxvABq','yvnqt1m','mLPQAxfnDG','u2nlB2W','ugDjvgC','BwfWCgLUz0zPBgu','DgfYz2v0CY5TAW','DhH0u0u','zgjeAhq','mJK3uMzUsgvQ','DxrMoa','mZu0nJCXnKLYsKnMqG','mty1ndzSBNLstw8','mtu2mtuXmMfYBhb6vG','DgfYz2v0C0zPBgu','t2fQBhC','nte1oxPMsLDZBW','nxfZtLnozW','A05gBuS','q1DYsKW','AM9PBG','CNvSzxmUBwS','Dg1WrgLY','wvvPs1u'];_0xa7dd=function(){return _0x293fc2;};return _0xa7dd();}import{randomUUID}from'crypto';import{tmpdir}from'os';function _0x2f66(_0x12cb20,_0x3ba039){_0x12cb20=_0x12cb20-0xc5;const _0xa7dde5=_0xa7dd();let _0x2f663a=_0xa7dde5[_0x12cb20];if(_0x2f66['ljTyGu']===undefined){var _0x41ef1a=function(_0x39fc7d){const _0x8643fd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3965b5='',_0x55ae30='';for(let _0x1c7903=0x0,_0x402a42,_0x59a552,_0x26906a=0x0;_0x59a552=_0x39fc7d['charAt'](_0x26906a++);~_0x59a552&&(_0x402a42=_0x1c7903%0x4?_0x402a42*0x40+_0x59a552:_0x59a552,_0x1c7903++%0x4)?_0x3965b5+=String['fromCharCode'](0xff&_0x402a42>>(-0x2*_0x1c7903&0x6)):0x0){_0x59a552=_0x8643fd['indexOf'](_0x59a552);}for(let _0x18939c=0x0,_0x5a90cf=_0x3965b5['length'];_0x18939c<_0x5a90cf;_0x18939c++){_0x55ae30+='%'+('00'+_0x3965b5['charCodeAt'](_0x18939c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x55ae30);};_0x2f66['ntKqgZ']=_0x41ef1a,_0x2f66['qEMCgU']={},_0x2f66['ljTyGu']=!![];}const _0x5eacba=_0xa7dde5[0x0],_0x35354b=_0x12cb20+_0x5eacba,_0x2fd114=_0x2f66['qEMCgU'][_0x35354b];return!_0x2fd114?(_0x2f663a=_0x2f66['ntKqgZ'](_0x2f663a),_0x2f66['qEMCgU'][_0x35354b]=_0x2f663a):_0x2f663a=_0x2fd114,_0x2f663a;}function ensureDir(_0x4eff42){const _0x197241=_0x2f66,_0x3e44ad={'YUiKU':function(_0x35b229,_0x34d4df){return _0x35b229(_0x34d4df);}};if(!_0x3e44ad[_0x197241(0xe1)](existsSync,_0x4eff42)){const _0x2e1e57={};_0x2e1e57[_0x197241(0xc8)]=!![],mkdirSync(_0x4eff42,_0x2e1e57);}}export function writeRules(_0x10f09a,_0x3df40d,_0x349b51={},_0x1e95d2=null){const _0x182864=_0x2f66,_0x45d601={'PgITg':function(_0x27600a){return _0x27600a();},'kNFmK':function(_0x404f91,_0x1133b7,_0x49f31d){return _0x404f91(_0x1133b7,_0x49f31d);},'aSPOS':function(_0x88ee44,_0x5cf6f9){return _0x88ee44(_0x5cf6f9);},'VdYte':function(_0x5da9f9,_0x513931,_0x3f9914){return _0x5da9f9(_0x513931,_0x3f9914);},'YviNy':_0x182864(0xdf),'lbLNY':function(_0x531bb0,_0x1d944d,_0x13126d){return _0x531bb0(_0x1d944d,_0x13126d);},'kBjpM':function(_0x4744bf,_0xfb86f1,_0x3e3d7d){return _0x4744bf(_0xfb86f1,_0x3e3d7d);},'txtSE':function(_0x4699f4,_0x518fdb){return _0x4699f4+_0x518fdb;},'eFwtl':function(_0x22de4e,_0x419bc9,_0x2e9d5d,_0x55e3a3){return _0x22de4e(_0x419bc9,_0x2e9d5d,_0x55e3a3);},'CWrJL':_0x182864(0xd4)};if(!_0x1e95d2){const _0x37c6f3=_0x45d601[_0x182864(0xce)](randomUUID)[_0x182864(0xc9)](/-/g,'');_0x1e95d2=_0x45d601[_0x182864(0xdc)](join,tmpdir(),'cm-'+_0x37c6f3);}_0x45d601[_0x182864(0xcb)](ensureDir,_0x1e95d2);const _0x532d26=_0x45d601[_0x182864(0xe2)](join,_0x1e95d2,_0x45d601['YviNy']),_0x45a11e=_0x45d601[_0x182864(0xe5)](join,_0x1e95d2,_0x182864(0xd0)),_0x9c633c=_0x45d601['kBjpM'](join,_0x1e95d2,_0x182864(0xe3)),_0x3266e0=_0x45d601[_0x182864(0xd1)](_0x10f09a[_0x182864(0xde)]('\x0a'),'\x0a');_0x45d601[_0x182864(0xeb)](writeFileSync,_0x532d26,_0x3266e0,_0x182864(0xd4));const _0x1cb5df=_0x182864(0xea)+_0x3df40d[_0x182864(0xde)]('\x20')+'\x0a';writeFileSync(_0x45a11e,_0x1cb5df,_0x182864(0xd4));const _0x5662a9=JSON[_0x182864(0xe7)](_0x349b51,null,0x2);_0x45d601['eFwtl'](writeFileSync,_0x9c633c,_0x5662a9,_0x45d601[_0x182864(0xdd)]);const _0x407444={};return _0x407444[_0x182864(0xe9)]=_0x532d26,_0x407444[_0x182864(0xd8)]=_0x45a11e,_0x407444[_0x182864(0xcf)]=_0x9c633c,_0x407444[_0x182864(0xe0)]=_0x1e95d2,_0x407444;}export function writeConfigMk(_0x3408a4,_0x1f7f4a){const _0x340477=_0x2f66,_0x2ddd20={'ScKol':function(_0x15a912,_0x138c5e){return _0x15a912===_0x138c5e;},'dbDht':function(_0x5693bc,_0x3dcd4b,_0x4c69be){return _0x5693bc(_0x3dcd4b,_0x4c69be);},'OtyOH':_0x340477(0xc7),'Oajlw':_0x340477(0xd4)};if(!_0x1f7f4a||_0x2ddd20[_0x340477(0xcd)](_0x1f7f4a['size'],0x0))return null;ensureDir(_0x3408a4);const _0x4a7d8b=_0x2ddd20[_0x340477(0xd2)](join,_0x3408a4,_0x340477(0xe6)),_0x4f798b=[_0x2ddd20['OtyOH']];for(const [_0x10bfe5,_0x265edb]of _0x1f7f4a){_0x4f798b[_0x340477(0xc6)](_0x10bfe5+_0x340477(0xe8)+_0x265edb);}return writeFileSync(_0x4a7d8b,_0x4f798b['join']('\x0a')+'\x0a',_0x2ddd20[_0x340477(0xd9)]),_0x4a7d8b;}
|
package/dist/makefiles/ibmi.mk
CHANGED
|
@@ -407,7 +407,7 @@ endef
|
|
|
407
407
|
define BUILD_MENU
|
|
408
408
|
$(call SETUP_LOG,$(notdir $@))
|
|
409
409
|
$(SET_LIBL)
|
|
410
|
-
system "crtmnu menu($(TARGET_LIB)/$(call ibmi_name_sh,$@)) type(*dspf) dspf($(call ibmi_name_sh,$(filter %.file,$^))) msgf($(call ibmi_name_sh,$(filter %.msgf,$^)))$(CODERMAKE_OPTS_crtmnu)"
|
|
410
|
+
system "crtmnu menu($(TARGET_LIB)/$(call ibmi_name_sh,$@)) type(*dspf) dspf($(call ibmi_name_sh,$(filter %.file,$^ $|))) msgf($(call ibmi_name_sh,$(filter %.msgf,$^ $|)))$(CODERMAKE_OPTS_crtmnu)"
|
|
411
411
|
endef
|
|
412
412
|
|
|
413
413
|
######
|
package/dist/makefiles/unix.mk
CHANGED
|
@@ -561,7 +561,7 @@ define BUILD_MENU
|
|
|
561
561
|
$(call SETUP_LOG,$(notdir $@))
|
|
562
562
|
$(SSH) $(QSHELL) <<'EOF'
|
|
563
563
|
$(SET_LIBL)
|
|
564
|
-
system "crtmnu menu($(TARGET_LIB)/$(call ibmi_name_sh,$@)) type(*dspf) dspf($(call ibmi_name_sh,$(filter %.file,$^))) msgf($(call ibmi_name_sh,$(filter %.msgf,$^)))$(CODERMAKE_OPTS_crtmnu)"
|
|
564
|
+
system "crtmnu menu($(TARGET_LIB)/$(call ibmi_name_sh,$@)) type(*dspf) dspf($(call ibmi_name_sh,$(filter %.file,$^ $|))) msgf($(call ibmi_name_sh,$(filter %.msgf,$^ $|)))$(CODERMAKE_OPTS_crtmnu)"
|
|
565
565
|
EOF
|
|
566
566
|
touch '$@'
|
|
567
567
|
endef
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@profoundlogic/codermake",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"description": "Make wrapper framework for IBM i development that simplifies build rules",
|
|
5
5
|
"main": "dist/bin/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"test:dist": "npm run build && npm run test:dist:unit && npm run test:dist:integration",
|
|
20
20
|
"test:dist:unit": "node --test dist/test/unit/**/*.test.js",
|
|
21
21
|
"test:dist:integration": "CODERMAKE_E2E_TEST=true node --test --test-concurrency=1 dist/test/integration/**/*.test.js",
|
|
22
|
-
"lint": "eslint . --ignore-pattern dist/",
|
|
22
|
+
"lint": "eslint . --ignore-pattern dist/ --ignore-pattern vendor/",
|
|
23
23
|
"start": "./bin/index.js",
|
|
24
24
|
"check:multi-library-env": "node -e \"import('dotenv/config').then(() => { if (!process.env.CODERMAKE_E2E_LIBRARY_MAP || !process.env.CODERMAKE_E2E_LIBRARY_MAP.trim()) { console.error('CODERMAKE_E2E_LIBRARY_MAP must be set for prepublish (e.g. \\\"LIBA=DEVLIBA LIBB=DEVLIBB\\\"). Gates the multi-library output integration tests.'); process.exit(1); } })\"",
|
|
25
25
|
"prepublishOnly": "npm run check:multi-library-env && npm run lint && npm test && npm run build && npm run test:dist"
|
|
@@ -83,6 +83,8 @@ custdata.file: custdata.pf
|
|
|
83
83
|
setup.pgm: setup.clle
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
+
**The first normal prerequisite is the source** that creates the object, and it is what selects the compile command. Normal prerequisites after it are dependencies: they force a rebuild when they change but never change the command.
|
|
87
|
+
|
|
86
88
|
### Order-only prerequisites
|
|
87
89
|
|
|
88
90
|
Use `|` for objects that must exist before building the target but should not trigger a rebuild when they change. This is typical for binding directories and database files.
|
|
@@ -91,6 +93,35 @@ Use `|` for objects that must exist before building the target but should not tr
|
|
|
91
93
|
mypgm.pgm: mypgm.rpgle mysrvpgm.srvpgm | mybnddir.bnddir mytable.file
|
|
92
94
|
```
|
|
93
95
|
|
|
96
|
+
### File objects that depend on other files
|
|
97
|
+
|
|
98
|
+
IBM i `*FILE` objects often depend on other files, and often on more than one: a logical file is based on one or more physical files, and a file of any type can take its field definitions from a field reference physical file (DDS `REF`/`REFFLD`). List the dependency's **source** as a normal prerequisite (so a change to it rebuilds the dependent file), and the dependency's **file object** as an order-only prerequisite (so it exists on IBM i at compile time):
|
|
99
|
+
|
|
100
|
+
```makefile
|
|
101
|
+
# Field reference physical file
|
|
102
|
+
fldref.file: fldref.pf
|
|
103
|
+
|
|
104
|
+
# Physical files whose fields come from the field reference file (REF)
|
|
105
|
+
custp.file: custp.pf fldref.pf | fldref.file
|
|
106
|
+
ordp.file: ordp.pf fldref.pf | fldref.file
|
|
107
|
+
|
|
108
|
+
# Logical file over one physical file
|
|
109
|
+
custl.file: custl.lf custp.pf | custp.file
|
|
110
|
+
|
|
111
|
+
# Join logical file over two physical files
|
|
112
|
+
custjoin.file: custjoin.lf custp.pf ordp.pf | custp.file ordp.file
|
|
113
|
+
|
|
114
|
+
# Display file with field references to two physical files (REF and REFFLD)
|
|
115
|
+
custd.file: custd.dspf fldref.pf ordp.pf | fldref.file ordp.file
|
|
116
|
+
|
|
117
|
+
# SQL view over a DDS physical file in another source directory
|
|
118
|
+
custvw.file: custvw.view.sql qddssrc/custp.pf | custp.file
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Keep the creating source first: `custl.file` compiles with `CRTLF` because `custl.lf` is the first prerequisite, not because of where `.pf` appears. This works for every source type that can create a `*FILE` (`.dspf`, `.pf`, `.lf`, `.prtf`, their System/38 `*38` variants, `.json`, and `.table.sql`/`.index.sql`/`.view.sql`).
|
|
122
|
+
|
|
123
|
+
`CRTPF`/`CRTLF`/`CRTDSPF`/`CRTPRTF` have no `REPLACE` parameter, so rebuilding a file whose object already exists fails with `CPF5813` — delete the object or run `codermake clean` first.
|
|
124
|
+
|
|
94
125
|
### Cross-directory references
|
|
95
126
|
|
|
96
127
|
Files with a path separator are treated as relative to the project root (not the Rules.mk directory):
|