@profoundlogic/codermake 1.4.0 → 1.4.2
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 +4 -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/discovery.js +1 -1
- package/dist/lib/executor.js +1 -1
- 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/writer.js +1 -1
- package/dist/makefiles/base.mk +1 -1
- package/dist/makefiles/ibmi.mk +1 -1
- package/package.json +1 -1
- package/skills/codermake/SKILL.md +2 -2
- package/skills/codermake/references/file-types.md +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x358ebb,_0x4715d0){const _0x4af8ba=_0x5107,_0x38f3e7=_0x358ebb();while(!![]){try{const _0x116d16=parseInt(_0x4af8ba(0x15a))/0x1*(-parseInt(_0x4af8ba(0x129))/0x2)+parseInt(_0x4af8ba(0x158))/0x3*(-parseInt(_0x4af8ba(0x172))/0x4)+parseInt(_0x4af8ba(0x12b))/0x5*(parseInt(_0x4af8ba(0x132))/0x6)+parseInt(_0x4af8ba(0x141))/0x7+parseInt(_0x4af8ba(0x164))/0x8*(parseInt(_0x4af8ba(0x16e))/0x9)+-parseInt(_0x4af8ba(0x16d))/0xa*(parseInt(_0x4af8ba(0x136))/0xb)+parseInt(_0x4af8ba(0x173))/0xc*(parseInt(_0x4af8ba(0x138))/0xd);if(_0x116d16===_0x4715d0)break;else _0x38f3e7['push'](_0x38f3e7['shift']());}catch(_0x273748){_0x38f3e7['push'](_0x38f3e7['shift']());}}}(_0x2569,0xd2382));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';export function detectFormat(_0x5d8fc4){const _0x338e56=_0x5107,_0x436a90={};_0x436a90['FOJzA']=_0x338e56(0x170);const _0x281633=_0x436a90;if(/^\*\*free$/i[_0x338e56(0x160)](_0x5d8fc4[_0x338e56(0x159)]()))return _0x281633['FOJzA'];return _0x338e56(0x14d);}function _0x2569(){const _0x320481=['BgLICMfYEq','ALbgy1C','t3Ply1q','zML4zwq','CxjWz2XLC3jJ','y09zz2i','sLnWBwy','zMLUza','EwLHALq','lNjWz2XL','B3bLCMfUza','ufHbse4','Aw5KzxG','ChvZAa','mtu2otaZm0L2z0jmrG','DhjPBuvUza','muHKEK5cBG','DhjPBvn0yxj0','u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','ue93AwO','DhjPBq','DxrMoa','DgvZDa','CMvWBgfJzq','Aw5KzxHpzG','EuvrsNy','nJC1nti5nNjVtw9AsG','C3vIC3rYAw5N','yuPNDee','icbeAxjLy3rPDMu6ia','AM9PBG','AwzZ','lNnXBhjWz2XL','Dg9mB3DLCKnHC2u','Ce1At0i','mZGZmfrNDvfJra','ouHKsMvdsq','z2DIqvO','zNjLzq','lYaODhjPzwqGlNjWz2XLlcaUC3fSCNbNBguP','ngTdr3jTvG','ote2nJaWofvqz2PYsa','EwXXs0K','zMLSzu5HBwu','mJGWmdiWmKXiAeznuW','jdfgAwXLoIa','nJK3nJyWtKLpwe1P','BwvTyMvYtMfTzq','Bw9KAwzPzwq','CMvJDxjZAxzL','y29UDgvUDa','DxPSrK8','zwHYtLm','nJbqww14sLC','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','wLfkzMS','Bwf0y2G','mZe4nZHMtKHdB3C','AMX5ufm','mJznAfDKqKm','BwvTyMvY','BMvLzgvK','zffIqNi','DhLWzq','C3bSAxq','s0fJrvK','C3rHCNrZv2L0Aa','ENj0z3i','odG2oti4yuLKyNvA','t0H2Dgy','ywT0q2u','BwvZC2fNzq','icHSB29RAw5NigzVCIaN','BgvUz3rO','A2v5D29Yza','Aw5JBhvKzxm','wNvhr3e'];_0x2569=function(){return _0x320481;};return _0x2569();}function _0x5107(_0xa6bb64,_0x51b194){_0xa6bb64=_0xa6bb64-0x127;const _0x2569e7=_0x2569();let _0x5107c6=_0x2569e7[_0xa6bb64];if(_0x5107['yYyPiJ']===undefined){var _0x34fe5c=function(_0x2bb1d7){const _0x3499d8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5be421='',_0x51c6f2='';for(let _0x1d00dd=0x0,_0x1e1972,_0x17222e,_0x3d8e10=0x0;_0x17222e=_0x2bb1d7['charAt'](_0x3d8e10++);~_0x17222e&&(_0x1e1972=_0x1d00dd%0x4?_0x1e1972*0x40+_0x17222e:_0x17222e,_0x1d00dd++%0x4)?_0x5be421+=String['fromCharCode'](0xff&_0x1e1972>>(-0x2*_0x1d00dd&0x6)):0x0){_0x17222e=_0x3499d8['indexOf'](_0x17222e);}for(let _0x108410=0x0,_0x54d0e6=_0x5be421['length'];_0x108410<_0x54d0e6;_0x108410++){_0x51c6f2+='%'+('00'+_0x5be421['charCodeAt'](_0x108410)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x51c6f2);};_0x5107['LqJlql']=_0x34fe5c,_0x5107['DuOfxe']={},_0x5107['yYyPiJ']=!![];}const _0x4a143f=_0x2569e7[0x0],_0x3fbff0=_0xa6bb64+_0x4a143f,_0x51d7be=_0x5107['DuOfxe'][_0x3fbff0];return!_0x51d7be?(_0x5107c6=_0x5107['LqJlql'](_0x5107c6),_0x5107['DuOfxe'][_0x3fbff0]=_0x5107c6):_0x5107c6=_0x51d7be,_0x5107c6;}export function extractDirective(_0x5e5e1b,_0x41b4ce){const _0x381ff1=_0x5107,_0x1fddc1={};_0x1fddc1[_0x381ff1(0x14c)]=function(_0x13729e,_0x24b7d4){return _0x13729e===_0x24b7d4;},_0x1fddc1[_0x381ff1(0x142)]=function(_0x169ff1,_0x30844b){return _0x169ff1-_0x30844b;},_0x1fddc1['zrtgr']=function(_0x431db5,_0x4df3aa){return _0x431db5+_0x4df3aa;},_0x1fddc1[_0x381ff1(0x13e)]=function(_0x1f9117,_0x2c199b){return _0x1f9117!==_0x2c199b;},_0x1fddc1['ggbAZ']=function(_0xaf19ad,_0x5f0c50){return _0xaf19ad-_0x5f0c50;},_0x1fddc1[_0x381ff1(0x143)]=function(_0x1f5b41,_0x5b5c81){return _0x1f5b41===_0x5b5c81;};const _0x5b8eb3=_0x1fddc1;let _0x45ec8b,_0x23f5d9;if(_0x5b8eb3['OzKcT'](_0x41b4ce,_0x381ff1(0x170))){const _0x5d3794=_0x5e5e1b[_0x381ff1(0x135)](/^\s*\/(copy|include) (\S)/i);if(!_0x5d3794)return null;const _0x53cd6a=_0x5e5e1b['trimStart']();if(_0x53cd6a[_0x381ff1(0x13f)]('//'))return null;_0x45ec8b=_0x5d3794[0x1]['toLowerCase'](),_0x23f5d9=_0x5e5e1b[_0x381ff1(0x165)](_0x5b8eb3[_0x381ff1(0x142)](_0x5b8eb3[_0x381ff1(0x140)](_0x5d3794[_0x381ff1(0x156)],_0x5d3794[0x0]['length']),0x1));}else{if(_0x5e5e1b['length']<0x7)return null;if(_0x5b8eb3[_0x381ff1(0x13e)](_0x5e5e1b[0x6],'/'))return null;const _0x494870=_0x5e5e1b[_0x381ff1(0x165)](0x7),_0x5e35a8=_0x494870['match'](/^(copy|include) (\S)/i);if(!_0x5e35a8)return null;_0x45ec8b=_0x5e35a8[0x1][_0x381ff1(0x16b)](),_0x23f5d9=_0x494870[_0x381ff1(0x165)](_0x5b8eb3[_0x381ff1(0x16f)](_0x5e35a8[0x0][_0x381ff1(0x146)],0x1));}let _0x4afada;if(_0x23f5d9[_0x381ff1(0x13f)]('\x27')){const _0x23f976=_0x23f5d9[_0x381ff1(0x162)]('\x27',0x1);_0x4afada=_0x5b8eb3[_0x381ff1(0x143)](_0x23f976,-0x1)?_0x23f5d9[_0x381ff1(0x15e)]():_0x23f5d9[_0x381ff1(0x165)](0x0,_0x23f976+0x1);}else{if(_0x23f5d9[_0x381ff1(0x13f)]('\x22')){const _0xe56fa9=_0x23f5d9[_0x381ff1(0x162)]('\x22',0x1);_0x4afada=_0xe56fa9===-0x1?_0x23f5d9[_0x381ff1(0x15e)]():_0x23f5d9[_0x381ff1(0x165)](0x0,_0xe56fa9+0x1);}else _0x4afada=_0x23f5d9['split'](/\s/)[0x0];}const _0x4c1a51={};return _0x4c1a51[_0x381ff1(0x147)]=_0x45ec8b,_0x4c1a51[_0x381ff1(0x154)]=_0x4afada,_0x4c1a51;}export function classifyDirectiveOperand(_0x31c936){const _0x5720e2=_0x5107,_0x31c822={};_0x31c822['cOYgb']=function(_0x4395e6,_0xa171c2){return _0x4395e6+_0xa171c2;},_0x31c822['uzlFO']=_0x5720e2(0x169);const _0x36d1a5=_0x31c822;if(_0x31c936[_0x5720e2(0x13f)]('\x27')||_0x31c936[_0x5720e2(0x13f)]('\x22')){const _0x1606d6={};return _0x1606d6[_0x5720e2(0x13c)]=_0x5720e2(0x169),_0x1606d6;}if(_0x31c936[_0x5720e2(0x148)](',')){const _0x5b3d25=_0x31c936[_0x5720e2(0x162)](','),_0x223e5c=_0x31c936['substring'](0x0,_0x5b3d25),_0x4f6c6a=_0x31c936[_0x5720e2(0x165)](_0x5b3d25+0x1),_0x41375a=_0x223e5c['indexOf']('/');if(_0x41375a!==-0x1){const _0x57299e=_0x223e5c[_0x5720e2(0x165)](0x0,_0x41375a),_0x5d8f86=/^\*libl$/i[_0x5720e2(0x160)](_0x57299e)?null:_0x57299e;return{'type':'member','library':_0x5d8f86,'fileName':_0x223e5c[_0x5720e2(0x165)](_0x36d1a5[_0x5720e2(0x14f)](_0x41375a,0x1)),'memberName':_0x4f6c6a};}const _0x3522d7={};return _0x3522d7[_0x5720e2(0x13c)]=_0x5720e2(0x139),_0x3522d7[_0x5720e2(0x14a)]=null,_0x3522d7[_0x5720e2(0x128)]=_0x223e5c,_0x3522d7[_0x5720e2(0x12c)]=_0x4f6c6a,_0x3522d7;}if(_0x31c936['includes']('/')){const _0x5a796e={};return _0x5a796e[_0x5720e2(0x13c)]=_0x36d1a5[_0x5720e2(0x130)],_0x5a796e;}if(/\.rpgle$/i[_0x5720e2(0x160)](_0x31c936)||/\.sqlrpgle$/i[_0x5720e2(0x160)](_0x31c936)){const _0x58eb82={};return _0x58eb82['type']=_0x5720e2(0x169),_0x58eb82;}const _0x311986={};return _0x311986['type']='member',_0x311986[_0x5720e2(0x14a)]=null,_0x311986[_0x5720e2(0x128)]=null,_0x311986['memberName']=_0x31c936,_0x311986;}function findFileInsensitive(_0x3d018d,_0x22a4bd){const _0x288a29=_0x5107,_0x582aef={'jPFcW':function(_0xc56d29,_0x1d8b86){return _0xc56d29(_0x1d8b86);}};let _0x15ddac;try{_0x15ddac=_0x582aef[_0x288a29(0x14b)](readdirSync,_0x3d018d);}catch{return null;}if(_0x15ddac['includes'](_0x22a4bd))return _0x22a4bd;const _0x3bf2d4=_0x22a4bd[_0x288a29(0x16b)]();return _0x15ddac[_0x288a29(0x151)](_0x1d2465=>_0x1d2465['toLowerCase']()===_0x3bf2d4)||null;}function findDirInsensitive(_0x392b27,_0x307424){const _0x4a508d=_0x5107,_0x109e3a={'JSpmf':function(_0x1944c3,_0x31e44e){return _0x1944c3(_0x31e44e);}};let _0x55111e;try{_0x55111e=_0x109e3a[_0x4a508d(0x150)](readdirSync,_0x392b27);}catch{return null;}if(_0x55111e[_0x4a508d(0x148)](_0x307424))return _0x307424;const _0x1f9ff9=_0x307424['toLowerCase']();return _0x55111e[_0x4a508d(0x151)](_0x1fad50=>_0x1fad50[_0x4a508d(0x16b)]()===_0x1f9ff9)||null;}export function resolveSourceMember(_0x295d37,_0x38d591){const _0x511ffd=_0x5107,_0x419f58={'pMZOB':function(_0x4c41ad,_0x538b05){return _0x4c41ad!==_0x538b05;},'POwij':function(_0x5cd7e6,_0xc2ed83,_0x1b28dc){return _0x5cd7e6(_0xc2ed83,_0x1b28dc);},'jlyPS':function(_0x37618d,_0x4c00be,_0x1f5646){return _0x37618d(_0x4c00be,_0x1f5646);},'ehrNS':_0x511ffd(0x153),'aJgtA':function(_0x39f56d,_0x97d79b){return _0x39f56d+_0x97d79b;}},{library:_0xdaa223,fileName:_0x17b877,memberName:_0x2ef68c}=_0x295d37;let _0x4e02a5;if(_0x17b877===null)_0x4e02a5=_0x511ffd(0x14e);else _0x419f58[_0x511ffd(0x16c)](_0xdaa223,null)?_0x4e02a5=_0xdaa223+'/'+_0x17b877:_0x4e02a5=_0x17b877;const _0x2dafe4=_0x4e02a5['split']('/');let _0x590adf=_0x38d591;const _0x1d66c4=[];for(const _0x56255a of _0x2dafe4){const _0x2fce4b=_0x419f58[_0x511ffd(0x15d)](findDirInsensitive,_0x590adf,_0x56255a);if(!_0x2fce4b)throw new Error(_0x511ffd(0x133)+_0x4e02a5+_0x511ffd(0x145)+_0x56255a+'\x27\x20in\x20\x27'+_0x590adf+'\x27)');_0x1d66c4[_0x511ffd(0x157)](_0x2fce4b),_0x590adf=_0x419f58[_0x511ffd(0x137)](join,_0x590adf,_0x2fce4b);}const _0x33e40a=_0x1d66c4['join']('/'),_0x1f2080=[_0x419f58[_0x511ffd(0x131)],_0x511ffd(0x16a)];for(const _0x1b83d5 of _0x1f2080){const _0x18ae71=_0x419f58[_0x511ffd(0x166)](_0x2ef68c,_0x1b83d5),_0x457641=findFileInsensitive(join(_0x38d591,_0x33e40a),_0x18ae71);if(_0x457641)return _0x33e40a+'/'+_0x457641;}throw new Error(_0x511ffd(0x15c)+_0x2ef68c+'\x20in\x20'+_0x33e40a+_0x511ffd(0x171));}export function preprocessFileContent(_0x1be37c,_0x17dcf0){const _0x1288b2=_0x5107,_0x2060fb={'kAwye':function(_0x477084,_0xfbc042,_0x1b8c32){return _0x477084(_0xfbc042,_0x1b8c32);},'ylqKI':function(_0x2318e6,_0x5bc310){return _0x2318e6===_0x5bc310;},'yEQJv':function(_0x2d1737,_0x18e256,_0x3e2828){return _0x2d1737(_0x18e256,_0x3e2828);},'ZQJfk':function(_0x51239a,_0x34fee6){return _0x51239a+_0x34fee6;},'PXAHN':function(_0x4d5f64,_0x127d1b){return _0x4d5f64===_0x127d1b;}},_0x453e1c=_0x1be37c[_0x1288b2(0x13d)]('\x0a'),_0x532e94={};_0x532e94['content']=_0x1be37c,_0x532e94[_0x1288b2(0x12d)]=![];if(_0x453e1c[_0x1288b2(0x146)]===0x0)return _0x532e94;const _0xb52114=detectFormat(_0x453e1c[0x0]);let _0x38e0ad=![];const _0x51664b=[];for(let _0x44f652=0x0;_0x44f652<_0x453e1c['length'];_0x44f652++){const _0x1c4805=_0x453e1c[_0x44f652],_0x536910=_0x2060fb['kAwye'](extractDirective,_0x1c4805,_0xb52114);if(!_0x536910){_0x51664b[_0x1288b2(0x157)](_0x1c4805);continue;}const _0xac5dd4=classifyDirectiveOperand(_0x536910[_0x1288b2(0x154)]);if(_0x2060fb[_0x1288b2(0x127)](_0xac5dd4['type'],_0x1288b2(0x169))){_0x51664b[_0x1288b2(0x157)](_0x1c4805);continue;}let _0x13b75b;try{_0x13b75b=_0x2060fb[_0x1288b2(0x163)](resolveSourceMember,_0xac5dd4,_0x17dcf0);}catch(_0x5ea09a){const _0x3dd840=_0x2060fb[_0x1288b2(0x134)](_0x44f652,0x1);throw new Error(_0x2060fb['ZQJfk'](_0x5ea09a['message']+'\x0a','\x20\x20File:\x20line\x20'+_0x3dd840+'\x0a')+(_0x1288b2(0x167)+_0x1c4805[_0x1288b2(0x15b)]()));}let _0x56fc0a;if(_0x2060fb[_0x1288b2(0x155)](_0xb52114,_0x1288b2(0x170))){const _0x474f6f=_0x1c4805[_0x1288b2(0x135)](/^(\s*\/)(copy|include) /i),_0x399bd9=_0x474f6f[0x1],_0x43624d=_0x474f6f[0x2],_0x4220c3=_0x1c4805[_0x1288b2(0x165)](_0x2060fb[_0x1288b2(0x134)](_0x474f6f[0x0][_0x1288b2(0x146)],_0x536910[_0x1288b2(0x154)]['length']));_0x56fc0a=''+_0x399bd9+_0x43624d+'\x20'+_0x13b75b+_0x4220c3;}else{const _0x65425d=_0x1c4805[_0x1288b2(0x165)](0x0,0x6),_0x32072c=_0x1c4805['substring'](0x7)[_0x1288b2(0x135)](/^(copy|include) /i),_0x5a0a3e=_0x32072c[0x1],_0x1604e6=0x7+_0x32072c[0x0][_0x1288b2(0x146)],_0x26895d=_0x1c4805[_0x1288b2(0x165)](_0x1604e6+_0x536910['operand'][_0x1288b2(0x146)]);_0x56fc0a=_0x65425d+'/'+_0x5a0a3e+'\x20'+_0x13b75b+_0x26895d;}_0x51664b[_0x1288b2(0x157)](_0x56fc0a),_0x38e0ad=!![];}return{'content':_0x51664b[_0x1288b2(0x168)]('\x0a'),'modified':_0x38e0ad};}export function preprocessFile(_0x1aee3f,_0x10461f){const _0x5c3b1f=_0x5107,_0x432a25={'DLaVx':function(_0x29d638,_0x178b01,_0x303611){return _0x29d638(_0x178b01,_0x303611);}};if(!/\.(rpgle|sqlrpgle)$/i[_0x5c3b1f(0x160)](_0x1aee3f)){const _0x4ae50e={};return _0x4ae50e[_0x5c3b1f(0x12d)]=![],_0x4ae50e;}const _0x1d161c=_0x432a25['DLaVx'](readFileSync,_0x1aee3f,_0x5c3b1f(0x15f));try{return preprocessFileContent(_0x1d161c,_0x10461f);}catch(_0x291e8b){const _0x108ec6=_0x291e8b[_0x5c3b1f(0x144)][_0x5c3b1f(0x161)](/^(.*\n {2})File: /,_0x5c3b1f(0x12a)+_0x1aee3f+',\x20');throw new Error(_0x108ec6);}}export function preprocessFiles(_0xc2869b,_0x1c2f9c,_0x4d572d){const _0x61fff=_0x5107,_0x1f3c53={'ZuGGq':function(_0x194cb0,_0x4b2472,_0x4e3206){return _0x194cb0(_0x4b2472,_0x4e3206);},'yiajT':function(_0x4b39e5){return _0x4b39e5();},'dQbBr':function(_0x1eb222,_0x15b90c,_0x2f22f3){return _0x1eb222(_0x15b90c,_0x2f22f3);},'uKeSS':function(_0x5c0e4b,_0x3f8c8c){return _0x5c0e4b(_0x3f8c8c);}},_0x5bf827=[];let _0x37d1da=![];for(const _0x16b6b0 of _0xc2869b){const _0x335b7a=_0x1f3c53[_0x61fff(0x149)](join,_0x1c2f9c,_0x16b6b0),_0x2a3c7b=preprocessFile(_0x335b7a,_0x1c2f9c),_0x47b94e={'filePath':_0x16b6b0,..._0x2a3c7b};_0x5bf827[_0x61fff(0x157)](_0x47b94e);if(_0x2a3c7b[_0x61fff(0x12d)])_0x37d1da=!![];}if(!_0x37d1da){const _0x1ba1e4={};return _0x1ba1e4['needed']=![],_0x1ba1e4['sourceRoot']='.',_0x1ba1e4;}const _0x5b2d6f=_0x4d572d+'-'+_0x1f3c53[_0x61fff(0x152)](randomUUID);for(let _0x502719=0x0;_0x502719<_0xc2869b[_0x61fff(0x146)];_0x502719++){const _0xc7419d=_0xc2869b[_0x502719],_0x304946=_0x5bf827[_0x502719],_0x3c4002=_0x1f3c53[_0x61fff(0x13b)](join,_0x5b2d6f,_0xc7419d),_0x2fc1c2={};_0x2fc1c2[_0x61fff(0x12e)]=!![],_0x1f3c53[_0x61fff(0x149)](mkdirSync,_0x1f3c53['uKeSS'](dirname,_0x3c4002),_0x2fc1c2),_0x304946[_0x61fff(0x12d)]?writeFileSync(_0x3c4002,_0x304946[_0x61fff(0x12f)]):_0x1f3c53[_0x61fff(0x149)](copyFileSync,join(_0x1c2f9c,_0xc7419d),_0x3c4002);}const _0x392f47={};return _0x392f47[_0x61fff(0x13a)]=!![],_0x392f47['sourceRoot']=_0x5b2d6f,_0x392f47;}
|
|
1
|
+
(function(_0x478c13,_0x42faee){const _0x4687e0=_0x2761,_0x44e976=_0x478c13();while(!![]){try{const _0x5d748c=-parseInt(_0x4687e0(0x190))/0x1+parseInt(_0x4687e0(0x1b9))/0x2*(parseInt(_0x4687e0(0x181))/0x3)+-parseInt(_0x4687e0(0x1a8))/0x4+-parseInt(_0x4687e0(0x198))/0x5*(-parseInt(_0x4687e0(0x17f))/0x6)+parseInt(_0x4687e0(0x18c))/0x7+-parseInt(_0x4687e0(0x1ac))/0x8+parseInt(_0x4687e0(0x195))/0x9;if(_0x5d748c===_0x42faee)break;else _0x44e976['push'](_0x44e976['shift']());}catch(_0x4ccdfb){_0x44e976['push'](_0x44e976['shift']());}}}(_0x5464,0xa061e));import{readFileSync,writeFileSync,mkdirSync,copyFileSync,readdirSync}from'fs';import{dirname,join}from'path';import{randomUUID}from'crypto';export function detectFormat(_0x4bf4ac){const _0x1fef13=_0x2761,_0xa75df0={};_0xa75df0[_0x1fef13(0x18a)]=_0x1fef13(0x18e),_0xa75df0[_0x1fef13(0x1b1)]=_0x1fef13(0x1a1);const _0x31a32a=_0xa75df0;if(/^\*\*free$/i['test'](_0x4bf4ac['trimEnd']()))return _0x31a32a[_0x1fef13(0x18a)];return _0x31a32a[_0x1fef13(0x1b1)];}function _0x2761(_0x2e0f90,_0x4a65ca){_0x2e0f90=_0x2e0f90-0x171;const _0x5464bd=_0x5464();let _0x27616d=_0x5464bd[_0x2e0f90];if(_0x2761['shmFUy']===undefined){var _0x37bf75=function(_0x2958b3){const _0x3bbf97='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1e042e='',_0x6f259a='';for(let _0x4a999a=0x0,_0x16259d,_0xecb6f1,_0x1cf436=0x0;_0xecb6f1=_0x2958b3['charAt'](_0x1cf436++);~_0xecb6f1&&(_0x16259d=_0x4a999a%0x4?_0x16259d*0x40+_0xecb6f1:_0xecb6f1,_0x4a999a++%0x4)?_0x1e042e+=String['fromCharCode'](0xff&_0x16259d>>(-0x2*_0x4a999a&0x6)):0x0){_0xecb6f1=_0x3bbf97['indexOf'](_0xecb6f1);}for(let _0xe7e43b=0x0,_0x123b39=_0x1e042e['length'];_0xe7e43b<_0x123b39;_0xe7e43b++){_0x6f259a+='%'+('00'+_0x1e042e['charCodeAt'](_0xe7e43b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6f259a);};_0x2761['msuCDT']=_0x37bf75,_0x2761['SPxuAC']={},_0x2761['shmFUy']=!![];}const _0x4e4f3f=_0x5464bd[0x0],_0x47a7d9=_0x2e0f90+_0x4e4f3f,_0x421ae7=_0x2761['SPxuAC'][_0x47a7d9];return!_0x421ae7?(_0x27616d=_0x2761['msuCDT'](_0x27616d),_0x2761['SPxuAC'][_0x47a7d9]=_0x27616d):_0x27616d=_0x421ae7,_0x27616d;}export function extractDirective(_0x5a96e2,_0x56b719){const _0xbe3354=_0x2761,_0x1dfd46={};_0x1dfd46[_0xbe3354(0x173)]=_0xbe3354(0x18e),_0x1dfd46['qvdiS']=function(_0x146ef7,_0x9da5b2){return _0x146ef7+_0x9da5b2;},_0x1dfd46[_0xbe3354(0x182)]=function(_0x221ef1,_0x39d85d){return _0x221ef1<_0x39d85d;},_0x1dfd46[_0xbe3354(0x1a7)]=function(_0x39a855,_0xe32158){return _0x39a855-_0xe32158;},_0x1dfd46[_0xbe3354(0x1af)]=function(_0x48efa6,_0x551b40){return _0x48efa6===_0x551b40;};const _0x5d02ff=_0x1dfd46;let _0x7f35e0,_0x147d96;if(_0x56b719===_0x5d02ff[_0xbe3354(0x173)]){const _0x14f02d=_0x5a96e2[_0xbe3354(0x179)](/^\s*\/(copy|include) (\S)/i);if(!_0x14f02d)return null;const _0xa79d6a=_0x5a96e2['trimStart']();if(_0xa79d6a[_0xbe3354(0x180)]('//'))return null;_0x7f35e0=_0x14f02d[0x1][_0xbe3354(0x18d)](),_0x147d96=_0x5a96e2[_0xbe3354(0x1b7)](_0x5d02ff['qvdiS'](_0x14f02d[_0xbe3354(0x175)],_0x14f02d[0x0][_0xbe3354(0x199)])-0x1);}else{if(_0x5d02ff['wCjKJ'](_0x5a96e2[_0xbe3354(0x199)],0x7))return null;if(_0x5a96e2[0x6]!=='/')return null;const _0x44f7a4=_0x5a96e2[_0xbe3354(0x1b7)](0x7),_0x266ed8=_0x44f7a4[_0xbe3354(0x179)](/^(copy|include) (\S)/i);if(!_0x266ed8)return null;_0x7f35e0=_0x266ed8[0x1][_0xbe3354(0x18d)](),_0x147d96=_0x44f7a4[_0xbe3354(0x1b7)](_0x5d02ff['bEgKF'](_0x266ed8[0x0][_0xbe3354(0x199)],0x1));}let _0x54ee77;if(_0x147d96[_0xbe3354(0x180)]('\x27')){const _0x3a5da0=_0x147d96['indexOf']('\x27',0x1);_0x54ee77=_0x5d02ff['vedza'](_0x3a5da0,-0x1)?_0x147d96[_0xbe3354(0x17e)]():_0x147d96[_0xbe3354(0x1b7)](0x0,_0x3a5da0+0x1);}else{if(_0x147d96[_0xbe3354(0x180)]('\x22')){const _0x1863eb=_0x147d96[_0xbe3354(0x1b0)]('\x22',0x1);_0x54ee77=_0x1863eb===-0x1?_0x147d96[_0xbe3354(0x17e)]():_0x147d96['substring'](0x0,_0x5d02ff[_0xbe3354(0x1ba)](_0x1863eb,0x1));}else _0x54ee77=_0x147d96[_0xbe3354(0x174)](/\s/)[0x0];}const _0x1cc77b={};return _0x1cc77b['keyword']=_0x7f35e0,_0x1cc77b[_0xbe3354(0x1b5)]=_0x54ee77,_0x1cc77b;}export function classifyDirectiveOperand(_0x1102a7){const _0x4ec0dc=_0x2761,_0x472497={};_0x472497[_0x4ec0dc(0x1b2)]=_0x4ec0dc(0x185),_0x472497[_0x4ec0dc(0x1ab)]=function(_0x24f27a,_0x2d22d2){return _0x24f27a+_0x2d22d2;},_0x472497[_0x4ec0dc(0x194)]=function(_0x31469d,_0x5579c4){return _0x31469d+_0x5579c4;},_0x472497[_0x4ec0dc(0x1a2)]='member';const _0x405cb0=_0x472497;if(_0x1102a7['startsWith']('\x27')||_0x1102a7[_0x4ec0dc(0x180)]('\x22')){const _0x36872a={};return _0x36872a['type']=_0x405cb0[_0x4ec0dc(0x1b2)],_0x36872a;}if(_0x1102a7['includes'](',')){const _0x4b0c13=_0x1102a7[_0x4ec0dc(0x1b0)](','),_0x185d27=_0x1102a7[_0x4ec0dc(0x1b7)](0x0,_0x4b0c13),_0x52f091=_0x1102a7['substring'](_0x405cb0[_0x4ec0dc(0x1ab)](_0x4b0c13,0x1)),_0xfb8e26=_0x185d27[_0x4ec0dc(0x1b0)]('/');if(_0xfb8e26!==-0x1){const _0x40b849=_0x185d27[_0x4ec0dc(0x1b7)](0x0,_0xfb8e26),_0x2bea31=/^\*libl$/i[_0x4ec0dc(0x187)](_0x40b849)?null:_0x40b849;return{'type':_0x4ec0dc(0x188),'library':_0x2bea31,'fileName':_0x185d27[_0x4ec0dc(0x1b7)](_0x405cb0[_0x4ec0dc(0x194)](_0xfb8e26,0x1)),'memberName':_0x52f091};}const _0x452798={};return _0x452798['type']=_0x405cb0['MDibz'],_0x452798[_0x4ec0dc(0x192)]=null,_0x452798[_0x4ec0dc(0x19c)]=_0x185d27,_0x452798['memberName']=_0x52f091,_0x452798;}if(_0x1102a7[_0x4ec0dc(0x17d)]('/')){const _0x46f80c={};return _0x46f80c[_0x4ec0dc(0x1a5)]=_0x4ec0dc(0x185),_0x46f80c;}if(/\.rpgle$/i[_0x4ec0dc(0x187)](_0x1102a7)||/\.sqlrpgle$/i[_0x4ec0dc(0x187)](_0x1102a7)){const _0xb0bbd={};return _0xb0bbd['type']=_0x405cb0[_0x4ec0dc(0x1b2)],_0xb0bbd;}const _0x2a8182={};return _0x2a8182[_0x4ec0dc(0x1a5)]=_0x405cb0[_0x4ec0dc(0x1a2)],_0x2a8182[_0x4ec0dc(0x192)]=null,_0x2a8182[_0x4ec0dc(0x19c)]=null,_0x2a8182[_0x4ec0dc(0x172)]=_0x1102a7,_0x2a8182;}function findFileInsensitive(_0x12bf54,_0x152c0a){const _0x5ab45e=_0x2761;let _0x32b30e;try{_0x32b30e=readdirSync(_0x12bf54);}catch{return null;}if(_0x32b30e['includes'](_0x152c0a))return _0x152c0a;const _0x4f6d87=_0x152c0a[_0x5ab45e(0x18d)]();return _0x32b30e[_0x5ab45e(0x189)](_0x23b8c4=>_0x23b8c4[_0x5ab45e(0x18d)]()===_0x4f6d87)||null;}function findDirInsensitive(_0x52d87c,_0x27414e){const _0x2347ed=_0x2761;let _0x5375aa;try{_0x5375aa=readdirSync(_0x52d87c);}catch{return null;}if(_0x5375aa[_0x2347ed(0x17d)](_0x27414e))return _0x27414e;const _0x48d4c3=_0x27414e['toLowerCase']();return _0x5375aa[_0x2347ed(0x189)](_0x52be2e=>_0x52be2e[_0x2347ed(0x18d)]()===_0x48d4c3)||null;}export function resolveSourceMember(_0x27354a,_0xeaa41){const _0x50c376=_0x2761,_0x55715f={'xTjHS':function(_0xe64c8b,_0x5bd70d){return _0xe64c8b===_0x5bd70d;},'ENhjx':'qrpglesrc','XRTcW':function(_0x2dcf24,_0x49150b){return _0x2dcf24!==_0x49150b;},'ByvBp':function(_0x435873,_0x2c2025,_0x1d463c){return _0x435873(_0x2c2025,_0x1d463c);},'brNHB':_0x50c376(0x183),'cogxM':function(_0x33068e,_0x403364,_0x518ebb){return _0x33068e(_0x403364,_0x518ebb);}},{library:_0x35f46b,fileName:_0x1aee29,memberName:_0x45d559}=_0x27354a;let _0xbf727d;if(_0x55715f[_0x50c376(0x17b)](_0x1aee29,null))_0xbf727d=_0x55715f[_0x50c376(0x1a3)];else _0x55715f[_0x50c376(0x176)](_0x35f46b,null)?_0xbf727d=_0x35f46b+'/'+_0x1aee29:_0xbf727d=_0x1aee29;const _0x238b19=_0xbf727d[_0x50c376(0x174)]('/');let _0x4ffdab=_0xeaa41;const _0x9210ac=[];for(const _0x417132 of _0x238b19){const _0x13b138=_0x55715f[_0x50c376(0x19e)](findDirInsensitive,_0x4ffdab,_0x417132);if(!_0x13b138)throw new Error('Directory\x20not\x20found:\x20'+_0xbf727d+'\x20(looking\x20for\x20\x27'+_0x417132+'\x27\x20in\x20\x27'+_0x4ffdab+'\x27)');_0x9210ac['push'](_0x13b138),_0x4ffdab=_0x55715f[_0x50c376(0x19e)](join,_0x4ffdab,_0x13b138);}const _0x3f5b74=_0x9210ac[_0x50c376(0x18b)]('/'),_0x3ca482=[_0x55715f[_0x50c376(0x17c)],_0x50c376(0x171)];for(const _0x4ee61 of _0x3ca482){const _0x22d4b9=_0x45d559+_0x4ee61,_0x2832fb=_0x55715f[_0x50c376(0x19d)](findFileInsensitive,_0x55715f['cogxM'](join,_0xeaa41,_0x3f5b74),_0x22d4b9);if(_0x2832fb)return _0x3f5b74+'/'+_0x2832fb;}throw new Error(_0x50c376(0x184)+_0x45d559+_0x50c376(0x1aa)+_0x3f5b74+_0x50c376(0x19f));}export function preprocessFileContent(_0x3a43be,_0x50e0f6){const _0x136b5e=_0x2761,_0x6a91de={'Xmgwt':function(_0x15c01e,_0xd60c72){return _0x15c01e<_0xd60c72;},'HBQmT':function(_0x3bf0f2,_0x427ad7){return _0x3bf0f2===_0x427ad7;},'lvMOt':function(_0x4dd59a,_0x504065,_0x2ab8f7){return _0x4dd59a(_0x504065,_0x2ab8f7);},'HLFGg':function(_0x3fc278,_0x3c5875){return _0x3fc278+_0x3c5875;},'SjDVn':function(_0x207505,_0x1c91b1){return _0x207505+_0x1c91b1;}},_0x298466=_0x3a43be[_0x136b5e(0x174)]('\x0a'),_0x5309f2={};_0x5309f2[_0x136b5e(0x1b3)]=_0x3a43be,_0x5309f2[_0x136b5e(0x1a6)]=![];if(_0x298466[_0x136b5e(0x199)]===0x0)return _0x5309f2;const _0x42231a=detectFormat(_0x298466[0x0]);let _0x1ebe03=![];const _0x37a6c5=[];for(let _0x47d6e3=0x0;_0x6a91de[_0x136b5e(0x1a9)](_0x47d6e3,_0x298466[_0x136b5e(0x199)]);_0x47d6e3++){const _0x26816d=_0x298466[_0x47d6e3],_0x5897c1=extractDirective(_0x26816d,_0x42231a);if(!_0x5897c1){_0x37a6c5['push'](_0x26816d);continue;}const _0x3e54db=classifyDirectiveOperand(_0x5897c1[_0x136b5e(0x1b5)]);if(_0x6a91de[_0x136b5e(0x1b8)](_0x3e54db[_0x136b5e(0x1a5)],_0x136b5e(0x185))){_0x37a6c5[_0x136b5e(0x1a0)](_0x26816d);continue;}let _0x24281c;try{_0x24281c=_0x6a91de[_0x136b5e(0x191)](resolveSourceMember,_0x3e54db,_0x50e0f6);}catch(_0x2f5dac){const _0x46dbd7=_0x6a91de[_0x136b5e(0x1ad)](_0x47d6e3,0x1);throw new Error(_0x6a91de[_0x136b5e(0x1ad)](_0x2f5dac['message']+'\x0a'+(_0x136b5e(0x1a4)+_0x46dbd7+'\x0a'),_0x136b5e(0x186)+_0x26816d[_0x136b5e(0x17a)]()));}let _0x3f13a1;if(_0x6a91de[_0x136b5e(0x1b8)](_0x42231a,_0x136b5e(0x18e))){const _0x14e8cc=_0x26816d['match'](/^(\s*\/)(copy|include) /i),_0x5f2251=_0x14e8cc[0x1],_0x1a1357=_0x14e8cc[0x2],_0x259ca9=_0x26816d[_0x136b5e(0x1b7)](_0x14e8cc[0x0]['length']+_0x5897c1[_0x136b5e(0x1b5)][_0x136b5e(0x199)]);_0x3f13a1=''+_0x5f2251+_0x1a1357+'\x20'+_0x24281c+_0x259ca9;}else{const _0x279427=_0x26816d[_0x136b5e(0x1b7)](0x0,0x6),_0x5683d3=_0x26816d['substring'](0x7)[_0x136b5e(0x179)](/^(copy|include) /i),_0x172ef4=_0x5683d3[0x1],_0x5955c1=_0x6a91de['SjDVn'](0x7,_0x5683d3[0x0][_0x136b5e(0x199)]),_0x552a97=_0x26816d['substring'](_0x6a91de[_0x136b5e(0x1ad)](_0x5955c1,_0x5897c1['operand'][_0x136b5e(0x199)]));_0x3f13a1=_0x279427+'/'+_0x172ef4+'\x20'+_0x24281c+_0x552a97;}_0x37a6c5[_0x136b5e(0x1a0)](_0x3f13a1),_0x1ebe03=!![];}return{'content':_0x37a6c5[_0x136b5e(0x18b)]('\x0a'),'modified':_0x1ebe03};}export function preprocessFile(_0x420aa1,_0x2eb2d5){const _0x249293=_0x2761,_0x4e9b65={'xsdBo':function(_0x51090a,_0x25a991,_0x3e2770){return _0x51090a(_0x25a991,_0x3e2770);}};if(!/\.(rpgle|sqlrpgle)$/i[_0x249293(0x187)](_0x420aa1)){const _0x7bab63={};return _0x7bab63[_0x249293(0x1a6)]=![],_0x7bab63;}const _0x4c4bd2=readFileSync(_0x420aa1,_0x249293(0x197));try{return _0x4e9b65[_0x249293(0x19b)](preprocessFileContent,_0x4c4bd2,_0x2eb2d5);}catch(_0x5587b3){const _0x111d68=_0x5587b3[_0x249293(0x196)][_0x249293(0x18f)](/^(.*\n {2})File: /,_0x249293(0x1ae)+_0x420aa1+',\x20');throw new Error(_0x111d68);}}export function preprocessFiles(_0x49a832,_0x3c6697,_0x3932c5){const _0x28031e=_0x2761,_0x578023={'QFTll':function(_0xaaecfd,_0x1ce002,_0x440b77){return _0xaaecfd(_0x1ce002,_0x440b77);},'VBSvh':function(_0x781a69,_0x413844,_0x2b6f73){return _0x781a69(_0x413844,_0x2b6f73);},'XpJQv':function(_0x2e8c6b,_0x583faa){return _0x2e8c6b<_0x583faa;},'DPdEa':function(_0x3e134b,_0x732724,_0x5976db){return _0x3e134b(_0x732724,_0x5976db);}},_0x3cc697=[];let _0x4a5846=![];for(const _0x5e7292 of _0x49a832){const _0x1dcad6=_0x578023[_0x28031e(0x19a)](join,_0x3c6697,_0x5e7292),_0x37cb93=_0x578023[_0x28031e(0x1b6)](preprocessFile,_0x1dcad6,_0x3c6697),_0x4aa6f2={'filePath':_0x5e7292,..._0x37cb93};_0x3cc697[_0x28031e(0x1a0)](_0x4aa6f2);if(_0x37cb93[_0x28031e(0x1a6)])_0x4a5846=!![];}if(!_0x4a5846){const _0x587434={};return _0x587434['needed']=![],_0x587434[_0x28031e(0x193)]='.',_0x587434;}const _0x3d7001=_0x3932c5+'-'+randomUUID();for(let _0x3f9797=0x0;_0x578023[_0x28031e(0x178)](_0x3f9797,_0x49a832[_0x28031e(0x199)]);_0x3f9797++){const _0x1bf1a6=_0x49a832[_0x3f9797],_0x5af6a9=_0x3cc697[_0x3f9797],_0x5beae5=join(_0x3d7001,_0x1bf1a6),_0x2bd58b={};_0x2bd58b[_0x28031e(0x1b4)]=!![],mkdirSync(dirname(_0x5beae5),_0x2bd58b),_0x5af6a9[_0x28031e(0x1a6)]?_0x578023[_0x28031e(0x1b6)](writeFileSync,_0x5beae5,_0x5af6a9[_0x28031e(0x1b3)]):copyFileSync(_0x578023[_0x28031e(0x177)](join,_0x3c6697,_0x1bf1a6),_0x5beae5);}const _0x1a6b65={};return _0x1a6b65['needed']=!![],_0x1a6b65['sourceRoot']=_0x3d7001,_0x1a6b65;}function _0x5464(){const _0x4ce2f6=['y29NEe0','qNL2qNa','lYaODhjPzwqGlNjWz2XLlcaUC3fSCNbNBguP','ChvZAa','zML4zwq','turPyNO','ru5OANG','icbgAwXLoIbSAw5Lia','DhLWzq','Bw9KAwzPzwq','yKvNs0y','mtK0mdC2neXzswPIBW','wg1ND3q','igLUia','Dg5XAxC','ndyXmtyZmKngENftva','seXgr2C','jdfgAwXLoIa','DMvKEMe','Aw5KzxHpzG','uvnft2m','DujLzhi','y29UDgvUDa','CMvJDxjZAxzL','B3bLCMfUza','vKjtDMG','C3vIC3rYAw5N','sejrBvq','mJbWsfPjvuK','CxzKAvm','lNnXBhjWz2XL','BwvTyMvYtMfTzq','D1DeBw8','C3bSAxq','Aw5KzxG','wfjuy1C','rfbKrwe','whbkuxy','Bwf0y2G','DhjPBvn0yxj0','EfrQsfm','yNjosei','Aw5JBhvKzxm','DhjPBq','mtqZnZzpyvfjzeS','C3rHCNrZv2L0Aa','mJaXntm0C2vrzwnS','D0nQs0O','lNjWz2XL','u291CMnLig1LBwjLCIbUB3qGzM91BMq6ia','AwzZ','icbeAxjLy3rPDMu6ia','DgvZDa','BwvTyMvY','zMLUza','tejYuvK','AM9PBG','ndaYndaYn01Owe9drW','Dg9mB3DLCKnHC2u','zNjLzq','CMvWBgfJzq','ndeZnZq4wNDZvxrW','Bhznt3q','BgLICMfYEq','C291CMnLuM9VDa','tM5esKm','mJu1oduZohjXu2T1sG','BwvZC2fNzq','DxrMoa','mti1nuvXDMrWzq','BgvUz3rO','uuzuBgW','EhnKqM8','zMLSzu5HBwu'];_0x5464=function(){return _0x4ce2f6;};return _0x5464();}
|
package/dist/lib/ssh.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1514(){const _0x1d156b=['zxHPDa','D0PhtNe','EMLIA1i','w3nZAf0','suDptwi','nJbergjzyM0','u2vYDMvYqwXPDMvdB3vUDe1HEd0Z','icHWCM9JzxnZigv4AxrLzcb3AxrOignVzguG','qMHezu0','u1niig1HC3rLCIbKAwqGBM90ihn0yxj0ihDPDgHPBIa','Ehryqwi','mJKYmdK1nM1JANHlDG','mZC3nda3mtbSse1KsKy','Bg9N','owPiy1f4Dq','q29UDhjVBfbHDgG9','q29UDhjVBfbLCNnPC3q9mtbT','EhLWsfu','BM93','ifntscbTyxn0zxiGzxn0ywjSAxnOzwq','D05uufy','mti2mtvKDeriz2i','BgfqCwS','C29Tzq','C3nOlq','ChvZAa','mtmXmJu4vufgAw9x','mtjKzu9bq0y','mZu3nJmZnNzquhvyCW','u2vYDMvYqwXPDMvjBNrLCNzHBd02ma','C3rHCNrZv2L0Aa','mJi3ota0ofbYBgXTBa','otiZodm2mLbzBKHdqW','D2LrBeO','u3rYAwn0sg9ZDeTLEunOzwnRAw5Npw5V','l3nZAc0LqW','BNDXEMC'];_0x1514=function(){return _0x1d156b;};return _0x1514();}(function(_0x49c3ad,_0x3eb07d){const _0x2f9457=_0x5508,_0x56a501=_0x49c3ad();while(!![]){try{const _0x503199=parseInt(_0x2f9457(0xe8))/0x1*(-parseInt(_0x2f9457(0xe9))/0x2)+-parseInt(_0x2f9457(0xea))/0x3+parseInt(_0x2f9457(0xf8))/0x4*(parseInt(_0x2f9457(0xe3))/0x5)+parseInt(_0x2f9457(0xfe))/0x6+-parseInt(_0x2f9457(0xee))/0x7+-parseInt(_0x2f9457(0xed))/0x8+-parseInt(_0x2f9457(0x101))/0x9*(-parseInt(_0x2f9457(0xff))/0xa);if(_0x503199===_0x3eb07d)break;else _0x56a501['push'](_0x56a501['shift']());}catch(_0x109359){_0x56a501['push'](_0x56a501['shift']());}}}(_0x1514,0xae6c3));function _0x5508(_0x2f238a,_0x2298ff){_0x2f238a=_0x2f238a-0xe0;const _0x151482=_0x1514();let _0x550850=_0x151482[_0x2f238a];if(_0x5508['MatqEA']===undefined){var _0x2bc7f7=function(_0x1465ea){const _0x4e4c4b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x270f01='',_0x32847d='';for(let _0x598df1=0x0,_0x46a66c,_0x2283cd,_0x46d1d1=0x0;_0x2283cd=_0x1465ea['charAt'](_0x46d1d1++);~_0x2283cd&&(_0x46a66c=_0x598df1%0x4?_0x46a66c*0x40+_0x2283cd:_0x2283cd,_0x598df1++%0x4)?_0x270f01+=String['fromCharCode'](0xff&_0x46a66c>>(-0x2*_0x598df1&0x6)):0x0){_0x2283cd=_0x4e4c4b['indexOf'](_0x2283cd);}for(let _0xf70ba6=0x0,_0x502810=_0x270f01['length'];_0xf70ba6<_0x502810;_0xf70ba6++){_0x32847d+='%'+('00'+_0x270f01['charCodeAt'](_0xf70ba6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x32847d);};_0x5508['jWhixI']=_0x2bc7f7,_0x5508['ffsawK']={},_0x5508['MatqEA']=!![];}const _0x4e0288=_0x151482[0x0],_0x15638d=_0x2f238a+_0x4e0288,_0x35a576=_0x5508['ffsawK'][_0x15638d];return!_0x35a576?(_0x550850=_0x5508['jWhixI'](_0x550850),_0x5508['ffsawK'][_0x15638d]=_0x550850):_0x550850=_0x35a576,_0x550850;}import{spawn}from'child_process';import{readdirSync}from'fs';async function waitForSSHSocket(_0x2a0a07,_0x224e48,_0x3dec62=0x3a98){const _0x3a81e0={'nwqzg':function(_0x1ce14e,_0xc3705){return _0x1ce14e!==_0xc3705;},'xtXAb':function(_0x52803b){return _0x52803b();},'wJGNq':function(_0x17d6d6,_0x4a4da4){return _0x17d6d6(_0x4a4da4);}};return new Promise((_0x1dd9c7,_0x28353f)=>{const _0x337f19=_0x5508,_0x79742d={'wiQlJ':function(_0x40a9b8){const _0x4e0399=_0x5508;return _0x3a81e0[_0x4e0399(0xfd)](_0x40a9b8);},'IGOMb':function(_0x12193a,_0x3c26d9){return _0x12193a-_0x3c26d9;},'EkhUQ':function(_0x33277f,_0x343db0){const _0x2d05e6=_0x5508;return _0x3a81e0[_0x2d05e6(0xf4)](_0x33277f,_0x343db0);}};let _0x1f5b78=![],_0x20ec75=null;_0x224e48['on'](_0x337f19(0xf3),_0xcc6a08=>{const _0x89d9db=_0x337f19;_0x20ec75=_0xcc6a08,!_0x1f5b78&&_0x3a81e0[_0x89d9db(0xf2)](_0xcc6a08,0x0)&&(_0x1f5b78=!![],_0x28353f(new Error('SSH\x20master\x20exited\x20with\x20code\x20'+_0xcc6a08)));});const _0x29ba6d=Date[_0x337f19(0xe0)](),_0x4e6696=()=>{const _0x3cbcac=_0x337f19;if(_0x1f5b78)return;const _0x17ae9a=readdirSync(_0x2a0a07);if(_0x17ae9a[_0x3cbcac(0xe5)](_0x150233=>_0x150233[_0x3cbcac(0xec)]('ssh-'))){_0x1f5b78=!![],_0x79742d[_0x3cbcac(0xef)](_0x1dd9c7);return;}if(_0x79742d[_0x3cbcac(0xf7)](Date['now'](),_0x29ba6d)>=_0x3dec62){_0x1f5b78=!![];const _0x44d6a2=_0x20ec75!==null?_0x3cbcac(0xfa)+_0x20ec75+')':'';_0x79742d['EkhUQ'](_0x28353f,new Error(_0x3cbcac(0xfc)+_0x3dec62+'ms'+_0x44d6a2));return;}setTimeout(_0x4e6696,0x64);};_0x4e6696();});}export async function establishSSHMaster(_0x48bac0,_0x43d154={}){const _0x5126ed=_0x5508,_0x2133aa={};_0x2133aa[_0x5126ed(0xf5)]=function(_0x30108c,_0x4c5d3c){return _0x30108c||_0x4c5d3c;},_0x2133aa[_0x5126ed(0x104)]='PasswordAuthentication=no',_0x2133aa['DDMkk']=_0x5126ed(0xeb),_0x2133aa[_0x5126ed(0xfb)]=_0x5126ed(0xf9),_0x2133aa['laPqk']='ssh',_0x2133aa[_0x5126ed(0xe2)]='ignore';const _0x3f3c54=_0x2133aa,{host:_0x5f1ffa,user:_0xf8a319,sshKey:_0x4be38d,debug:debug=![],debugPrefix:debugPrefix=_0x5126ed(0xf6)}=_0x43d154;if(_0x3f3c54[_0x5126ed(0xf5)](!_0x5f1ffa,!_0xf8a319))return;const _0x410c6e=readdirSync(_0x48bac0);if(_0x410c6e[_0x5126ed(0xe5)](_0x427a04=>_0x427a04[_0x5126ed(0xec)](_0x5126ed(0xe6)))){if(debug)console[_0x5126ed(0x100)](debugPrefix+'\x20SSH\x20master\x20already\x20exists,\x20reusing');return;}if(debug)console[_0x5126ed(0x100)](debugPrefix+'\x20Pre-establishing\x20SSH\x20master\x20connection...');const _0x52fbbf=['-o','ControlMaster=yes','-o',_0x5126ed(0x102)+_0x48bac0+_0x5126ed(0xf1),'-o',_0x5126ed(0x103),'-o',_0x5126ed(0xf0),'-o',_0x3f3c54['xypHU'],'-o',_0x3f3c54['DDMkk'],'-o',_0x3f3c54[_0x5126ed(0xfb)],'-N','-f'];_0x4be38d&&_0x52fbbf[_0x5126ed(0xe7)]('-i',_0x4be38d);_0x52fbbf[_0x5126ed(0xe7)](_0xf8a319+'@'+_0x5f1ffa);const _0x969d1a=spawn(_0x3f3c54[_0x5126ed(0xe4)],_0x52fbbf,{'detached':!![],'stdio':_0x3f3c54['wNTPV']});_0x969d1a['unref'](),await waitForSSHSocket(_0x48bac0,_0x969d1a,0x3a98);if(debug)console[_0x5126ed(0x100)](debugPrefix+_0x5126ed(0xe1));}
|
package/dist/lib/writer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x1e878a,_0x50b12e){const _0x5dbc30=_0x234b,_0x4b2b34=_0x1e878a();while(!![]){try{const _0x541748=parseInt(_0x5dbc30(0x1f4))/0x1*(parseInt(_0x5dbc30(0x1ed))/0x2)+parseInt(_0x5dbc30(0x1ee))/0x3*(parseInt(_0x5dbc30(0x1e9))/0x4)+-parseInt(_0x5dbc30(0x1ec))/0x5+parseInt(_0x5dbc30(0x1ea))/0x6*(-parseInt(_0x5dbc30(0x1eb))/0x7)+-parseInt(_0x5dbc30(0x1e5))/0x8+-parseInt(_0x5dbc30(0x1e4))/0x9*(parseInt(_0x5dbc30(0x1f6))/0xa)+parseInt(_0x5dbc30(0x1f1))/0xb;if(_0x541748===_0x50b12e)break;else _0x4b2b34['push'](_0x4b2b34['shift']());}catch(_0x18c0fd){_0x4b2b34['push'](_0x4b2b34['shift']());}}}(_0xebb8,0xed98f));import{writeFileSync,mkdirSync,existsSync}from'fs';import{join}from'path';import{randomUUID}from'crypto';import{tmpdir}from'os';function ensureDir(_0x568260){const _0x27b7f8=_0x234b,_0xd26a6a={'DSRyB':function(_0x440901,_0x2ea9ed,_0x5c29ca){return _0x440901(_0x2ea9ed,_0x5c29ca);}};if(!existsSync(_0x568260)){const _0x439b52={};_0x439b52[_0x27b7f8(0x1f5)]=!![],_0xd26a6a[_0x27b7f8(0x1f0)](mkdirSync,_0x568260,_0x439b52);}}function _0x234b(_0x5acf26,_0x4ccfe9){_0x5acf26=_0x5acf26-0x1e0;const _0xebb88=_0xebb8();let _0x234bc1=_0xebb88[_0x5acf26];if(_0x234b['MOjfcs']===undefined){var _0x5919ea=function(_0x39b20c){const _0x38a4e4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5100f2='',_0x134ab3='';for(let _0x54bb0b=0x0,_0x22660d,_0x13ca8f,_0x1135dd=0x0;_0x13ca8f=_0x39b20c['charAt'](_0x1135dd++);~_0x13ca8f&&(_0x22660d=_0x54bb0b%0x4?_0x22660d*0x40+_0x13ca8f:_0x13ca8f,_0x54bb0b++%0x4)?_0x5100f2+=String['fromCharCode'](0xff&_0x22660d>>(-0x2*_0x54bb0b&0x6)):0x0){_0x13ca8f=_0x38a4e4['indexOf'](_0x13ca8f);}for(let _0x28b6fd=0x0,_0x2bcb85=_0x5100f2['length'];_0x28b6fd<_0x2bcb85;_0x28b6fd++){_0x134ab3+='%'+('00'+_0x5100f2['charCodeAt'](_0x28b6fd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x134ab3);};_0x234b['ucbnax']=_0x5919ea,_0x234b['HWmHwM']={},_0x234b['MOjfcs']=!![];}const _0x1b1131=_0xebb88[0x0],_0x200d1c=_0x5acf26+_0x1b1131,_0x42e335=_0x234b['HWmHwM'][_0x200d1c];return!_0x42e335?(_0x234bc1=_0x234b['ucbnax'](_0x234bc1),_0x234b['HWmHwM'][_0x200d1c]=_0x234bc1):_0x234bc1=_0x42e335,_0x234bc1;}export function writeRules(_0xa186e6,_0x5dca3d,_0x5edecd={},_0x2f3a8b=null){const _0x1e8faa=_0x234b,_0x100d3b={'tiJyY':function(_0x1f7ebf){return _0x1f7ebf();},'RHchK':function(_0x2c99e2,_0x546357,_0x5f020e){return _0x2c99e2(_0x546357,_0x5f020e);},'ZuAiG':function(_0x50bed2,_0x56ca99,_0x52f226){return _0x50bed2(_0x56ca99,_0x52f226);},'PPunM':function(_0x412b3e,_0x504a98,_0x415243){return _0x412b3e(_0x504a98,_0x415243);},'FFtbY':'target-mapping.json','pwFFL':function(_0x4899e7,_0x34e875){return _0x4899e7+_0x34e875;},'ZgDIa':function(_0x31ec28,_0x34826d,_0x353d82,_0x342caf){return _0x31ec28(_0x34826d,_0x353d82,_0x342caf);},'eocuy':_0x1e8faa(0x1e2),'aVSvO':function(_0x5eff79,_0x49ad87,_0x79cbb5,_0x198a78){return _0x5eff79(_0x49ad87,_0x79cbb5,_0x198a78);}};if(!_0x2f3a8b){const _0x254608=_0x100d3b['tiJyY'](randomUUID)[_0x1e8faa(0x1e7)](/-/g,'');_0x2f3a8b=_0x100d3b[_0x1e8faa(0x1f8)](join,tmpdir(),'cm-'+_0x254608);}ensureDir(_0x2f3a8b);const _0x55e703=_0x100d3b[_0x1e8faa(0x1e0)](join,_0x2f3a8b,_0x1e8faa(0x1e8)),_0x1d5ba7=_0x100d3b[_0x1e8faa(0x1f9)](join,_0x2f3a8b,_0x1e8faa(0x1fe)),_0x1caf32=join(_0x2f3a8b,_0x100d3b[_0x1e8faa(0x1e1)]),_0x5a659e=_0x100d3b['pwFFL'](_0xa186e6['join']('\x0a'),'\x0a');_0x100d3b[_0x1e8faa(0x1fb)](writeFileSync,_0x55e703,_0x5a659e,_0x100d3b[_0x1e8faa(0x1e6)]);const _0xba2c55=_0x1e8faa(0x1fd)+_0x5dca3d[_0x1e8faa(0x1f2)]('\x20')+'\x0a';_0x100d3b[_0x1e8faa(0x1f7)](writeFileSync,_0x1d5ba7,_0xba2c55,_0x100d3b[_0x1e8faa(0x1e6)]);const _0xd1c44a=JSON[_0x1e8faa(0x1ef)](_0x5edecd,null,0x2);writeFileSync(_0x1caf32,_0xd1c44a,_0x100d3b[_0x1e8faa(0x1e6)]);const _0x2f314f={};return _0x2f314f[_0x1e8faa(0x1e3)]=_0x55e703,_0x2f314f[_0x1e8faa(0x1fa)]=_0x1d5ba7,_0x2f314f[_0x1e8faa(0x1f3)]=_0x1caf32,_0x2f314f[_0x1e8faa(0x1fc)]=_0x2f3a8b,_0x2f314f;}function _0xebb8(){const _0x446a53=['DgfYz2v0C0zPBgu','wMDeswe','Dg1WrgLY','vefsr0vuuYa6psa','DgfYz2v0CY5TAW','wNvbAuC','rKz0yLK','DxrMoa','CNvSzxngAwXL','ou1bsNHutG','mteZmtGXmZzVDvnwCxC','zw9JDxK','CMvWBgfJzq','CNvSzxmUBwS','mtmWnJyXmMTQzu5WCW','mJqXofHfy0Lcwa','mJm1odnJAffbt2K','mJK2ndCYmgr3Bur6wa','nJq4neTgEvHKAG','m29vwuzXEq','C3rYAw5NAwz5','rfnsEui','mZi4oti0mZfhtLLHugO','AM9PBG','BwfWCgLUz0zPBgu','mZe3BLLIy0XJ','CMvJDxjZAxzL','ntK3mtbyvMTHDMC','yvztDK8','uKHJAeS','ufb1BK0'];_0xebb8=function(){return _0x446a53;};return _0xebb8();}
|
package/dist/makefiles/base.mk
CHANGED
|
@@ -45,5 +45,5 @@ endef
|
|
|
45
45
|
# Expands to CL parameters when matching prerequisites exist, empty otherwise.
|
|
46
46
|
# Used by BUILD_MODULE_TO_PGM (CRTPGM) and BUILD_MODULE_TO_SRVPGM (CRTSRVPGM).
|
|
47
47
|
######
|
|
48
|
-
BNDSRVPGM_PARM = $(if $(filter %.srvpgm,$^),bndsrvpgm($(foreach s,$(filter %.srvpgm,$^),$(basename $(notdir $(s))))),)
|
|
48
|
+
BNDSRVPGM_PARM = $(if $(filter %.srvpgm,$^ $|),bndsrvpgm($(foreach s,$(filter %.srvpgm,$^ $|),$(basename $(notdir $(s))))),)
|
|
49
49
|
BNDDIR_PARM = $(if $(filter %.bnddir,$^ $|),bnddir($(foreach d,$(filter %.bnddir,$^ $|),$(basename $(notdir $(d))))),)
|
package/dist/makefiles/ibmi.mk
CHANGED
package/package.json
CHANGED
|
@@ -106,14 +106,14 @@ mypgm.pgm: mod1.module mod2.module
|
|
|
106
106
|
# Link with automatic BNDSRVPGM parameter
|
|
107
107
|
calc.pgm: calc.module utils.srvpgm
|
|
108
108
|
|
|
109
|
-
# Link with automatic BNDDIR parameter
|
|
109
|
+
# Link with automatic BNDDIR parameter
|
|
110
110
|
calcd.pgm: calcd.module | app.bnddir
|
|
111
111
|
|
|
112
112
|
# Create a service program from modules + export list
|
|
113
113
|
mysrvpgm.srvpgm: mymod.module mymod.exports
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
When `.srvpgm` or `.bnddir` appear as prerequisites on `.pgm` or `.srvpgm` targets built via CRTPGM/CRTSRVPGM, the corresponding `BNDSRVPGM()` and `BNDDIR()` parameters are automatically added to the
|
|
116
|
+
When `.srvpgm` or `.bnddir` appear as prerequisites (normal or order-only) on `.pgm` or `.srvpgm` targets built via CRTPGM/CRTSRVPGM, the corresponding `BNDSRVPGM()` and `BNDDIR()` parameters are automatically added to the command. This only applies to module-based targets — for source-based programs (e.g., CRTBNDRPG), `.srvpgm` and `.bnddir` prerequisites are build-ordering dependencies only.
|
|
117
117
|
|
|
118
118
|
The `.exports` (or `.bnd`) file is a text file listing exported procedure symbols:
|
|
119
119
|
|
|
@@ -56,7 +56,7 @@ getcount.pgm: getcount.proc.sql
|
|
|
56
56
|
|
|
57
57
|
### Program from modules
|
|
58
58
|
|
|
59
|
-
Links one or more compiled modules into a program. Prerequisites include `.module` targets, and optionally `.srvpgm`
|
|
59
|
+
Links one or more compiled modules into a program. Prerequisites include `.module` targets, and optionally `.srvpgm` and `.bnddir` (normal or order-only) for automatic binding.
|
|
60
60
|
|
|
61
61
|
```makefile
|
|
62
62
|
mypgm.pgm: mod1.module mod2.module
|