@neotask/cli 0.0.0 → 2026.10.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Peter Steinberger
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ (function(_0xb1c830,_0x681396){const _0x30c11d=_0xb1c830();while(!![]){try{const _0x7b86b0=parseInt(_0x5ccf(0x213))/0x1*(-parseInt(_0x5ccf(0x280))/0x2)+parseInt(_0x5ccf(0x2e5))/0x3*(parseInt(_0x5ccf(0x26a))/0x4)+parseInt(_0x5ccf(0x2c8))/0x5+-parseInt(_0x5ccf(0x25f))/0x6+-parseInt(_0x5ccf(0x312))/0x7*(parseInt(_0x5ccf(0x200))/0x8)+-parseInt(_0x5ccf(0x2b5))/0x9*(-parseInt(_0x5ccf(0x20b))/0xa)+parseInt(_0x5ccf(0x2f6))/0xb*(-parseInt(_0x5ccf(0x208))/0xc);if(_0x7b86b0===_0x681396)break;else _0x30c11d['push'](_0x30c11d['shift']());}catch(_0x27892b){_0x30c11d['push'](_0x30c11d['shift']());}}}(_0x1546,0xb0816));import{spawn}from'node:child_process';import{createHash}from'node:crypto';function _0x5ccf(_0xed7feb,_0x2351d1){_0xed7feb=_0xed7feb-0x1f3;const _0x154646=_0x1546();let _0x5ccf9b=_0x154646[_0xed7feb];return _0x5ccf9b;}import _0xbce253 from'node:fs/promises';import _0x459311 from'node:os';function _0x1546(){const _0x1bcc27=['121zGEOTn','\x20the\x20insta','Updating\x20N','i@latest),','Neotask\x20pr','task\x20updat','receipts','or\x20use\x20npx','schemaVers','us\x20install','isArray','sk\x20','\x20because\x20i','release\x20ke','Ids','task\x20insta','protocol','\x20the\x20packa','\x20in\x20','size\x20misma','\x20at\x20','get','Neotask','keys','orm\x20is\x20not','write','\x20install\x20i','Installing','7EegEGf','ge\x20(npm\x20in','join','ESRCH','licy.json','lstat','signingKey','ter\x20it\x20fin','ile','ired','digest\x20or\x20','string','The\x20Neotas','--manifest','min','bootstrapS','ignore','\x20or\x20run\x20','ll\x20not\x20run','digest','arch','ed\x20release','date\x20to\x20','add','--version','artifactUr','\x20remove\x20','catch','ust\x20be\x20a\x20r','LOCALAPPDA','Invalid\x20np','launcher\x20m','\x20is\x20not\x20si','lastIndexO','\x20was\x20signe','then','targets','k\x20again\x20af','\x20moved\x20to\x20','5155992mxVXLJ','eotask\x20','inherit','Installed\x20','yourself.\x0a','current','\x20state\x20fil','\x20and\x20was\x20n','605940dxEHQx','.neotask','NEOTASK_QU','1510NXXtIl','map','policy','stderr','ock','Neotask\x20','error','Usage:\x20neo','77447fQTrop','--artifact','Run\x20neotas','talled\x20tha','oes\x20not\x20kn','ity','Linux','neotask','in.\x0a','\x20for\x20','Bootstrap\x20','m-install-','direct','cli','gned\x20by\x20th',';\x20running\x20','rrupt\x20it.','exitCode','bootstrapU','o\x20not\x20inte','d\x20by\x20a\x20key','parse','location','t\x20release\x20','Neotask\x20is','\x20move\x20','object','manual','status','now','install','--trust-ro','t\x20credenti','ot\x20run.\x0a','stdout','false','\x20MB).\x20Plea','This\x20downl','ingKeyId','writeFile','.json','\x20for\x20Neota','body','once','This\x20platf','slice','round','--progress','require\x20HT','username','e`\x20to\x20retr','https:','l\x20or\x20updat','als','tch','\x20(nothing\x20','exceeds\x20it','policySign','mtimeMs','nned\x20boots','revokedKey','artifactSi','e\x20publishe','.\x20Run\x20`neo','sign','d\x20Neotask\x20','if\x20you\x20ins','was\x20delete','code','sourceSha','spkiSha256','mkdtemp','\x20published','update','.install.l','win32','810756fVyxNw','\x20this\x20@neo','Neotask\x20co','message','Invalid\x20bo','every','bootstrap','cancel','he\x20publish','e\x20is\x20runni','platform','4UuQgUT','tion.\x0a','ation\x20rema','utf8','version','TPS\x20withou','ENOENT','pre','-url','--source-s','exit','trust-root','toReversed','push','toLowerCas','.failed-','manifestUr','Windows','e\x20installa','bin','ger','IET','20WMJNJZ','CLI','s\x20running,','download\x20f','ocess\x20ende','trap\x20ident','d).\x20Instal','has','headers','unverifiab','Add\x20','ins\x20at\x20','neotask/cl','d\x20with\x20sig','y.\x0a','\x20and\x20run\x20n','homedir','hex','the\x20instal','llation\x20in','erifies\x20th','exe','ling\x20','toISOStrin','release-po','ize','Neotask\x20wi','realpath','isSafeInte','igned\x20by\x20t','stringify','stallation','downloads\x20','ot-file','bootstrap.','metadata','A\x20persiste','or\x20the\x20sam','toFixed','ng\x20there.\x20','ation\x20is\x20b','split','\x20directly\x20','older','\x20CLI\x20(abou','me\x20is\x20requ','led\x20','Invalid\x20pi','neotask-np','trustRoot','\x20could\x20not','egular\x20fil','\x20aside:\x20','78282pjdpvH','\x20to\x20','nt\x20user\x20ho','--policy-f','eotask\x20aga','otstrap\x20re','trim','tion\x20in\x20','core','ow.\x20Update','size','ack\x20at\x20','macOS','in\x20','password','t\x20is\x20not\x20s','readFile','keyId','\x20neotask\x20f','4598455XXKcEs','find','ha256','se\x20wait;\x20d','neotask.ex','untrusted','stall\x20-g\x20@','oads\x20and\x20v','kill','e\x20complete','ailed','ishes.\x20If\x20','m\x20release\x20','length','root','replace','k\x20installa','rename','\x20installed','owner.json','test','no\x20Neotask','.untrusted','s\x20pinned\x20s','l\x20failed;\x20','ys.\x20It\x20was','concat','pid','\x20package\x20d','1798251tbPkFt','The\x20previo','nal\x20','task/cli\x20','\x20an\x20instal','isAbsolute','Invalid\x20in','argv','tmpdir','uld\x20not\x20up','ion','\x20keys,\x20and','The\x20instal','the\x20previo','\x20to\x20PATH,\x20','sha256','isFile'];_0x1546=function(){return _0x1bcc27;};return _0x1546();}import _0x2cf54f from'node:path';import{fileURLToPath}from'node:url';const _0x2b5f4d=0x40*0x400*0x400,_0x11bf14=0x40*0x400,_0x317213={'darwin':_0x5ccf(0x2c1),'linux':_0x5ccf(0x219),'win32':_0x5ccf(0x27b)};export async function downloadPinnedBootstrap(_0x38d3a5,_0x5d3aec,_0x441e53=fetch){if(!/^[a-f0-9]{64}$/[_0x5ccf(0x2dc)](_0x38d3a5[_0x5ccf(0x321)+_0x5ccf(0x2ca)])||!Number[_0x5ccf(0x29c)+_0x5ccf(0x27e)](_0x38d3a5[_0x5ccf(0x321)+_0x5ccf(0x299)])||_0x38d3a5[_0x5ccf(0x321)+_0x5ccf(0x299)]<0x40||_0x38d3a5[_0x5ccf(0x321)+_0x5ccf(0x299)]>_0x2b5f4d)throw new Error(_0x5ccf(0x2af)+_0x5ccf(0x24e)+_0x5ccf(0x285)+_0x5ccf(0x218));let _0x4d0e28=new URL(_0x38d3a5[_0x5ccf(0x225)+'rl']),_0x18e4ef;for(let _0x155aef=0x0;_0x155aef<=0x5;_0x155aef++){if(_0x4d0e28[_0x5ccf(0x306)]!==_0x5ccf(0x246)||_0x4d0e28[_0x5ccf(0x244)]||_0x4d0e28[_0x5ccf(0x2c3)])throw new Error(_0x5ccf(0x21d)+_0x5ccf(0x2a0)+_0x5ccf(0x243)+_0x5ccf(0x26f)+_0x5ccf(0x233)+_0x5ccf(0x248));_0x18e4ef=await _0x441e53(_0x4d0e28,{'redirect':_0x5ccf(0x22e)});if(_0x18e4ef[_0x5ccf(0x22f)]>=0x12c&&_0x18e4ef[_0x5ccf(0x22f)]<0x190){const _0x77c178=_0x18e4ef[_0x5ccf(0x288)][_0x5ccf(0x30b)](_0x5ccf(0x229));await _0x18e4ef[_0x5ccf(0x23d)]?.[_0x5ccf(0x266)]();if(_0x155aef===0x5||!_0x77c178)throw new Error(_0x5ccf(0x263)+_0x5ccf(0x2ba)+_0x5ccf(0x21f));_0x4d0e28=new URL(_0x77c178,_0x4d0e28);continue;}break;}if(!_0x18e4ef?.['ok']||!_0x18e4ef[_0x5ccf(0x23d)])throw new Error(_0x5ccf(0x21d)+_0x5ccf(0x283)+_0x5ccf(0x2d2));const _0xc5a451=[];let _0x1752e9=0x0;for await(const _0x3332d2 of _0x18e4ef[_0x5ccf(0x23d)]){_0x1752e9+=_0x3332d2[_0x5ccf(0x2d5)];if(_0x1752e9>_0x38d3a5[_0x5ccf(0x321)+_0x5ccf(0x299)])throw new Error(_0x5ccf(0x21d)+_0x5ccf(0x24b)+_0x5ccf(0x2df)+_0x5ccf(0x299));_0xc5a451[_0x5ccf(0x277)](_0x3332d2);}const _0x4c1f47=Buffer[_0x5ccf(0x2e2)](_0xc5a451);if(_0x1752e9!==_0x38d3a5[_0x5ccf(0x321)+_0x5ccf(0x299)]||createHash(_0x5ccf(0x2f4))[_0x5ccf(0x25c)](_0x4c1f47)[_0x5ccf(0x325)](_0x5ccf(0x291))!==_0x38d3a5[_0x5ccf(0x321)+_0x5ccf(0x2ca)])throw new Error(_0x5ccf(0x21d)+_0x5ccf(0x31c)+_0x5ccf(0x309)+_0x5ccf(0x249));await _0xbce253[_0x5ccf(0x23a)](_0x5d3aec,_0x4c1f47,{'flag':'wx','mode':0x1c0});}function _0xb52dc4(_0x91b415,_0x9b597b,_0x4cecaf=![]){return new Promise((_0xc38dbf,_0x5d8672)=>{const _0x257694=spawn(_0x91b415,_0x9b597b,{'stdio':_0x4cecaf?[_0x5ccf(0x202),_0x5ccf(0x322),_0x5ccf(0x202)]:_0x5ccf(0x202),'shell':![]});_0x257694[_0x5ccf(0x23e)](_0x5ccf(0x211),_0x5d8672),_0x257694[_0x5ccf(0x23e)](_0x5ccf(0x274),(_0x456e32,_0x3bef84)=>{_0x3bef84?_0x5d8672(new Error(_0x5ccf(0x2fa)+_0x5ccf(0x284)+_0x5ccf(0x28d)+_0x5ccf(0x2e7)+_0x3bef84)):_0xc38dbf(_0x456e32??0x1);});});}function _0x3fbf0d(_0x423770){const _0x3301d0=String(_0x423770[_0x5ccf(0x20a)+_0x5ccf(0x27f)]??'')[_0x5ccf(0x2bb)]();return _0x3301d0!==''&&_0x3301d0!=='0'&&_0x3301d0[_0x5ccf(0x278)+'e']()!==_0x5ccf(0x236);}export function compareReleaseVersions(_0x35e081,_0x128d08){const _0x39ef70=_0x3cf248=>{const [_0x481432,_0x3de20a]=String(_0x3cf248)[_0x5ccf(0x2a9)]('+',0x1)[0x0][_0x5ccf(0x2a9)](/-(.*)/su);return{'core':_0x481432[_0x5ccf(0x2a9)]('.'),'pre':_0x3de20a?_0x3de20a[_0x5ccf(0x2a9)]('.'):[]};},_0x403881=_0x37a24d=>/^[0-9]+$/u[_0x5ccf(0x2dc)](_0x37a24d),_0x125614=(_0x1ef982,_0x53420a)=>BigInt(_0x1ef982)<BigInt(_0x53420a)?-0x1:BigInt(_0x1ef982)>BigInt(_0x53420a)?0x1:0x0,_0x329b74=_0x39ef70(_0x35e081),_0x5667ae=_0x39ef70(_0x128d08);for(let _0x14dd9c=0x0;_0x14dd9c<0x3;_0x14dd9c++){const _0x5ed39d=_0x125614(_0x329b74[_0x5ccf(0x2bd)][_0x14dd9c]??'0',_0x5667ae[_0x5ccf(0x2bd)][_0x14dd9c]??'0');if(_0x5ed39d!==0x0)return _0x5ed39d;}if(_0x329b74[_0x5ccf(0x271)][_0x5ccf(0x2d5)]===0x0||_0x5667ae[_0x5ccf(0x271)][_0x5ccf(0x2d5)]===0x0)return _0x329b74[_0x5ccf(0x271)][_0x5ccf(0x2d5)]===_0x5667ae[_0x5ccf(0x271)][_0x5ccf(0x2d5)]?0x0:_0x329b74[_0x5ccf(0x271)][_0x5ccf(0x2d5)]===0x0?0x1:-0x1;for(let _0x67561f=0x0;_0x67561f<Math[_0x5ccf(0x320)](_0x329b74[_0x5ccf(0x271)][_0x5ccf(0x2d5)],_0x5667ae[_0x5ccf(0x271)][_0x5ccf(0x2d5)]);_0x67561f++){const _0xc2d25c=_0x329b74[_0x5ccf(0x271)][_0x67561f],_0x2091e0=_0x5667ae[_0x5ccf(0x271)][_0x67561f];if(_0x403881(_0xc2d25c)&&_0x403881(_0x2091e0)){const _0x4dd98f=_0x125614(_0xc2d25c,_0x2091e0);if(_0x4dd98f!==0x0)return _0x4dd98f;}else{if(_0x403881(_0xc2d25c)!==_0x403881(_0x2091e0))return _0x403881(_0xc2d25c)?-0x1:0x1;else{if(_0xc2d25c!==_0x2091e0)return _0xc2d25c<_0x2091e0?-0x1:0x1;}}}return Math[_0x5ccf(0x253)](_0x329b74[_0x5ccf(0x271)][_0x5ccf(0x2d5)]-_0x5667ae[_0x5ccf(0x271)][_0x5ccf(0x2d5)]);}function _0x36aa3a(_0x5174df){if(!_0x5174df||typeof _0x5174df!==_0x5ccf(0x22d)||!Array[_0x5ccf(0x300)](_0x5174df[_0x5ccf(0x30d)]))return undefined;const _0x2da8a9=new Set(Array[_0x5ccf(0x300)](_0x5174df[_0x5ccf(0x24f)+_0x5ccf(0x304)])?_0x5174df[_0x5ccf(0x24f)+_0x5ccf(0x304)]:[]),_0x83d126=new Set();for(const _0x452692 of _0x5174df[_0x5ccf(0x30d)]){if(typeof _0x452692?.[_0x5ccf(0x2c6)]!==_0x5ccf(0x31d)||typeof _0x452692?.[_0x5ccf(0x259)]!==_0x5ccf(0x31d))return undefined;!_0x2da8a9[_0x5ccf(0x287)](_0x452692[_0x5ccf(0x2c6)])&&_0x83d126[_0x5ccf(0x329)](_0x452692[_0x5ccf(0x2c6)]+':'+_0x452692[_0x5ccf(0x259)]);}return _0x83d126;}async function _0x85b6cd(_0xa13cc2){const _0x14f61e=await _0xbce253[_0x5ccf(0x317)](_0xa13cc2);if(!_0x14f61e[_0x5ccf(0x2f5)]()||_0x14f61e[_0x5ccf(0x2bf)]>_0x11bf14)throw new Error(_0x5ccf(0x2eb)+_0x5ccf(0x29f)+_0x5ccf(0x206)+'e');return _0xbce253[_0x5ccf(0x2c5)](_0xa13cc2,_0x5ccf(0x26d));}export async function inspectInstallation(_0x1ce845,_0x481eb2){let _0x366de3,_0x583bc4;try{_0x366de3=(await _0x85b6cd(_0x2cf54f[_0x5ccf(0x314)](_0x1ce845,_0x5ccf(0x205))))[_0x5ccf(0x2bb)](),_0x583bc4=JSON[_0x5ccf(0x228)](await _0x85b6cd(_0x2cf54f[_0x5ccf(0x314)](_0x1ce845,_0x5ccf(0x275)+_0x5ccf(0x23b))));}catch{return{'status':_0x5ccf(0x2cd)};}const _0x4466b0=_0x36aa3a(_0x583bc4),_0x27c47b=_0x36aa3a(_0x481eb2[_0x5ccf(0x2b1)]);if(!/^[0-9]+\.[0-9]+\.[0-9]+(?:[-+][0-9A-Za-z.+-]*)?$/u[_0x5ccf(0x2dc)](_0x366de3)||!_0x4466b0||_0x4466b0[_0x5ccf(0x2bf)]===0x0||!_0x27c47b)return{'status':_0x5ccf(0x2cd),'version':_0x366de3};const _0x578160=compareReleaseVersions(_0x366de3,_0x481eb2[_0x5ccf(0x26e)]);if([..._0x4466b0][_0x5ccf(0x264)](_0x35d2a0=>_0x27c47b[_0x5ccf(0x287)](_0x35d2a0)))return{'status':_0x578160<0x0?_0x5ccf(0x2ab):_0x5ccf(0x205),'version':_0x366de3};if(_0x578160<=0x0)return{'status':_0x5ccf(0x2cd),'version':_0x366de3};try{const _0x5e7fe9=JSON[_0x5ccf(0x228)](await _0x85b6cd(_0x2cf54f[_0x5ccf(0x314)](_0x1ce845,_0x5ccf(0x2fc),_0x366de3+_0x5ccf(0x23b)))),_0x12e5be=new Map([..._0x4466b0][_0x5ccf(0x20c)](_0x2386e5=>[_0x2386e5[_0x5ccf(0x240)](0x0,_0x2386e5[_0x5ccf(0x1fa)+'f'](':')),_0x2386e5])),_0x172dcd=[_0x5e7fe9[_0x5ccf(0x318)+'Id'],_0x5e7fe9[_0x5ccf(0x24c)+_0x5ccf(0x239)]];if(_0x5e7fe9[_0x5ccf(0x26e)]===_0x366de3&&_0x172dcd[_0x5ccf(0x264)](_0x36035e=>typeof _0x36035e===_0x5ccf(0x31d)&&_0x27c47b[_0x5ccf(0x287)](_0x12e5be[_0x5ccf(0x30b)](_0x36035e))))return{'status':_0x5ccf(0x205),'version':_0x366de3};}catch{}return{'status':_0x5ccf(0x289)+'le','version':_0x366de3};}async function _0x1240ef(_0x116759,_0x157990,_0x5a8e10){const _0x9fd3f2=await _0xbce253[_0x5ccf(0x25a)](_0x2cf54f[_0x5ccf(0x314)](_0x459311[_0x5ccf(0x2ed)](),_0x5ccf(0x2b0)+_0x5ccf(0x21e)));try{const _0x365d3b=_0x2cf54f[_0x5ccf(0x314)](_0x9fd3f2,process[_0x5ccf(0x269)]===_0x5ccf(0x25e)?_0x5ccf(0x2a2)+_0x5ccf(0x295):_0x5ccf(0x265)),_0x2f82d1=_0x2cf54f[_0x5ccf(0x314)](_0x9fd3f2,_0x5ccf(0x275)+_0x5ccf(0x23b)),_0x44db38=_0x2cf54f[_0x5ccf(0x314)](_0x9fd3f2,_0x5ccf(0x298)+_0x5ccf(0x316));return await downloadPinnedBootstrap(_0x157990,_0x365d3b),await _0xbce253[_0x5ccf(0x23a)](_0x2f82d1,JSON[_0x5ccf(0x29e)](_0x116759[_0x5ccf(0x2b1)]),{'flag':'wx','mode':0x180}),await _0xbce253[_0x5ccf(0x23a)](_0x44db38,JSON[_0x5ccf(0x29e)](_0x116759[_0x5ccf(0x20d)]),{'flag':'wx','mode':0x180}),await _0xb52dc4(_0x365d3b,[_0x5ccf(0x231),_0x5ccf(0x31f)+_0x5ccf(0x272),_0x157990[_0x5ccf(0x27a)+'l'],_0x5ccf(0x214)+_0x5ccf(0x272),_0x157990[_0x5ccf(0x32b)+'l'],_0x5ccf(0x232)+_0x5ccf(0x2a1),_0x2f82d1,_0x5ccf(0x2b8)+_0x5ccf(0x31a),_0x44db38,_0x5ccf(0x32a),_0x116759[_0x5ccf(0x26e)],_0x5ccf(0x273)+'ha',_0x116759[_0x5ccf(0x258)],..._0x5a8e10?[_0x5ccf(0x242)]:[]],!![]);}finally{await _0xbce253['rm'](_0x9fd3f2,{'recursive':!![],'force':!![]});}}async function _0x11ad9f(_0x74afed){const _0x33702a=_0x2cf54f[_0x5ccf(0x314)](_0x74afed,_0x5ccf(0x25d)+_0x5ccf(0x20f));let _0x3e421a;try{_0x3e421a=await _0xbce253[_0x5ccf(0x317)](_0x33702a);}catch(_0x195b63){return _0x195b63[_0x5ccf(0x257)]!==_0x5ccf(0x270);}let _0x114cfb;try{_0x114cfb=JSON[_0x5ccf(0x228)](await _0x85b6cd(_0x2cf54f[_0x5ccf(0x314)](_0x33702a,_0x5ccf(0x2db))));}catch{return Date[_0x5ccf(0x230)]()-_0x3e421a[_0x5ccf(0x24d)]<0xea60;}if(!Number[_0x5ccf(0x29c)+_0x5ccf(0x27e)](_0x114cfb?.[_0x5ccf(0x2e3)])||_0x114cfb[_0x5ccf(0x2e3)]<=0x0)return!![];try{return process[_0x5ccf(0x2d0)](_0x114cfb[_0x5ccf(0x2e3)],0x0),!![];}catch(_0x202eb3){return _0x202eb3[_0x5ccf(0x257)]!==_0x5ccf(0x315);}}async function _0x5cf1f3(_0x287981){for(const [_0x358795,_0x2de349]of _0x287981[_0x5ccf(0x276)]()){try{await _0xbce253[_0x5ccf(0x2d9)](_0x358795,_0x2de349[_0x5ccf(0x2d7)](_0x5ccf(0x2de)+'-',_0x5ccf(0x279)));}catch{}try{await _0xbce253[_0x5ccf(0x2d9)](_0x2de349,_0x358795),process[_0x5ccf(0x20e)][_0x5ccf(0x30f)](_0x5ccf(0x2f1)+_0x5ccf(0x2e0)+_0x5ccf(0x2f2)+_0x5ccf(0x2ff)+_0x5ccf(0x2a8)+_0x5ccf(0x2c0)+_0x358795+(_0x5ccf(0x207)+_0x5ccf(0x234)));}catch(_0x2b5279){process[_0x5ccf(0x20e)][_0x5ccf(0x30f)](_0x5ccf(0x2e6)+_0x5ccf(0x2ff)+_0x5ccf(0x26c)+_0x5ccf(0x28b)+_0x2de349+':\x20'+(_0x2b5279 instanceof Error?_0x2b5279[_0x5ccf(0x262)]:String(_0x2b5279))+'\x0a');}}}export async function runStandaloneNpmEntry(_0x463511,_0x65c218=process.env){const _0x3fb3a6=fileURLToPath(new URL('../release.json',import.meta.url)),_0x24f263=await _0xbce253[_0x5ccf(0x317)](_0x3fb3a6);if(!_0x24f263[_0x5ccf(0x2f5)]()||_0x24f263[_0x5ccf(0x2bf)]>0x80*0x400)throw new Error(_0x5ccf(0x1f7)+_0x5ccf(0x2d4)+_0x5ccf(0x2a3));const _0x1dfa8c=JSON[_0x5ccf(0x228)](await _0xbce253[_0x5ccf(0x2c5)](_0x3fb3a6,_0x5ccf(0x26d)));if(_0x1dfa8c[_0x5ccf(0x2fe)+_0x5ccf(0x2ef)]!==0x1||!Array[_0x5ccf(0x300)](_0x1dfa8c[_0x5ccf(0x1fd)]))throw new Error(_0x5ccf(0x1f7)+_0x5ccf(0x2d4)+_0x5ccf(0x2a3));const _0x392065=_0x1dfa8c[_0x5ccf(0x1fd)][_0x5ccf(0x2c9)](_0x1fa29e=>_0x1fa29e[_0x5ccf(0x269)]===process[_0x5ccf(0x269)]&&_0x1fa29e[_0x5ccf(0x326)]===process[_0x5ccf(0x326)]);if(!_0x392065)throw new Error(_0x5ccf(0x23f)+_0x5ccf(0x30e)+_0x5ccf(0x25b)+_0x5ccf(0x23c)+_0x5ccf(0x301)+_0x1dfa8c[_0x5ccf(0x26e)]);const _0x5650ee=process[_0x5ccf(0x269)]===_0x5ccf(0x25e)?_0x65c218[_0x5ccf(0x1f6)+'TA']:_0x459311[_0x5ccf(0x290)]();if(!_0x5650ee||!_0x2cf54f[_0x5ccf(0x2ea)](_0x5650ee)||_0x5650ee===_0x2cf54f[_0x5ccf(0x228)](_0x5650ee)[_0x5ccf(0x2d6)])throw new Error(_0x5ccf(0x2a4)+_0x5ccf(0x2b7)+_0x5ccf(0x2ad)+_0x5ccf(0x31b));const _0x14e4c3=process[_0x5ccf(0x269)]===_0x5ccf(0x25e)?_0x2cf54f[_0x5ccf(0x314)](_0x5650ee,_0x5ccf(0x30c)):_0x2cf54f[_0x5ccf(0x314)](_0x5650ee,_0x5ccf(0x209)),_0x4d11e2=_0x2cf54f[_0x5ccf(0x314)](_0x14e4c3,_0x5ccf(0x27d)),_0x4d5136=_0x2cf54f[_0x5ccf(0x314)](_0x14e4c3,process[_0x5ccf(0x269)]===_0x5ccf(0x25e)?_0x5ccf(0x281):_0x5ccf(0x220)),_0x514629=_0x2cf54f[_0x5ccf(0x314)](_0x4d11e2,process[_0x5ccf(0x269)]===_0x5ccf(0x25e)?_0x5ccf(0x2cc)+'e':_0x5ccf(0x21a)),_0x10bfe4=_0x463511[0x0]===_0x5ccf(0x231);if(_0x10bfe4&&_0x463511[_0x5ccf(0x2d5)]!==0x1)throw new Error(_0x5ccf(0x212)+_0x5ccf(0x305)+'ll');const _0x1dca29=_0x3fbf0d(_0x65c218),_0x372d78=_0x587626=>{!_0x1dca29&&process[_0x5ccf(0x20e)][_0x5ccf(0x30f)](_0x587626+'\x0a');};let _0x58e0ae=![];try{const _0x3c9393=await _0xbce253[_0x5ccf(0x317)](_0x514629);if(!_0x3c9393[_0x5ccf(0x2f5)]())throw new Error(_0x5ccf(0x203)+_0x5ccf(0x1f8)+_0x5ccf(0x1f5)+_0x5ccf(0x2b3)+'e');_0x58e0ae=!![];}catch(_0x411b8c){if(_0x411b8c[_0x5ccf(0x257)]!==_0x5ccf(0x270))throw _0x411b8c;}const _0x587713=_0x58e0ae?await inspectInstallation(_0x4d5136,_0x1dfa8c):undefined,_0x7a985e=_0x5ccf(0x210)+_0x1dfa8c[_0x5ccf(0x26e)]+_0x5ccf(0x21c)+(_0x317213[process[_0x5ccf(0x269)]]??process[_0x5ccf(0x269)])+'\x20('+process[_0x5ccf(0x326)]+')';if(!_0x10bfe4&&_0x587713?.[_0x5ccf(0x22f)]===_0x5ccf(0x289)+'le')return process[_0x5ccf(0x20e)][_0x5ccf(0x30f)](_0x5ccf(0x210)+_0x587713[_0x5ccf(0x26e)]+_0x5ccf(0x308)+_0x4d5136+(_0x5ccf(0x1fb)+_0x5ccf(0x227)+_0x5ccf(0x260)+_0x5ccf(0x2e8))+_0x1dfa8c[_0x5ccf(0x26e)]+(_0x5ccf(0x2e4)+_0x5ccf(0x217)+_0x5ccf(0x2be)+_0x5ccf(0x307)+_0x5ccf(0x313)+_0x5ccf(0x2ce)+_0x5ccf(0x28c)+_0x5ccf(0x2f9)+_0x5ccf(0x323))+_0x514629+(_0x5ccf(0x2aa)+_0x5ccf(0x255)+_0x5ccf(0x216)+_0x5ccf(0x22a)+_0x5ccf(0x204))),0x1;const _0x1fa96c=[];if(!_0x58e0ae||_0x10bfe4||_0x587713[_0x5ccf(0x22f)]!==_0x5ccf(0x205)){if(!_0x58e0ae||_0x10bfe4&&_0x587713?.[_0x5ccf(0x22f)]!==_0x5ccf(0x2cd))_0x372d78(_0x5ccf(0x311)+'\x20'+_0x7a985e+'…');else{if(_0x587713[_0x5ccf(0x22f)]===_0x5ccf(0x2ab))_0x372d78(_0x5ccf(0x2f8)+_0x5ccf(0x201)+_0x587713[_0x5ccf(0x26e)]+_0x5ccf(0x2b6)+_0x7a985e+'…');else{if(await _0x11ad9f(_0x4d5136))return process[_0x5ccf(0x20e)][_0x5ccf(0x30f)](_0x5ccf(0x29a)+_0x5ccf(0x324)+_0x5ccf(0x2f7)+_0x5ccf(0x293)+'\x20'+_0x4d5136+(_0x5ccf(0x302)+_0x5ccf(0x2c4)+_0x5ccf(0x29d)+_0x5ccf(0x267)+_0x5ccf(0x327)+_0x5ccf(0x2f0)+_0x5ccf(0x2e9)+_0x5ccf(0x247)+_0x5ccf(0x268)+_0x5ccf(0x2a7)+_0x5ccf(0x215)+_0x5ccf(0x1fe)+_0x5ccf(0x319)+_0x5ccf(0x2d3)+_0x5ccf(0x2dd)+_0x5ccf(0x310)+_0x5ccf(0x282)+_0x5ccf(0x1f3))+_0x2cf54f[_0x5ccf(0x314)](_0x4d5136,_0x5ccf(0x25d)+_0x5ccf(0x20f))+(_0x5ccf(0x28f)+_0x5ccf(0x2b9)+_0x5ccf(0x21b))),0x1;const _0x409286=_0x5ccf(0x2de)+'-'+new Date()[_0x5ccf(0x297)+'g']()[_0x5ccf(0x2d7)](/[:.]/gu,'-');for(const _0x56452d of[_0x4d5136,_0x4d11e2]){try{await _0xbce253[_0x5ccf(0x2d9)](_0x56452d,_0x56452d+_0x409286),_0x1fa96c[_0x5ccf(0x277)]([_0x56452d,_0x56452d+_0x409286]);}catch(_0x380481){if(_0x380481[_0x5ccf(0x257)]!==_0x5ccf(0x270)){await _0x5cf1f3(_0x1fa96c);throw new Error(_0x5ccf(0x29a)+_0x5ccf(0x324)+_0x5ccf(0x2f7)+_0x5ccf(0x293)+'\x20'+_0x4d5136+(_0x5ccf(0x302)+_0x5ccf(0x2c4)+_0x5ccf(0x29d)+_0x5ccf(0x267)+_0x5ccf(0x327)+_0x5ccf(0x2f0)+_0x5ccf(0x2b2)+_0x5ccf(0x22c))+_0x56452d+_0x5ccf(0x2b4)+(_0x380481 instanceof Error?_0x380481[_0x5ccf(0x262)]:String(_0x380481)),{'cause':_0x380481});}}}process[_0x5ccf(0x20e)][_0x5ccf(0x30f)](_0x5ccf(0x31e)+_0x5ccf(0x2d8)+_0x5ccf(0x2bc)+_0x4d5136+(_0x587713[_0x5ccf(0x26e)]?'\x20('+_0x587713[_0x5ccf(0x26e)]+')':'')+(_0x5ccf(0x1f9)+_0x5ccf(0x221)+_0x5ccf(0x251)+_0x5ccf(0x254)+_0x5ccf(0x303)+_0x5ccf(0x2e1)+_0x5ccf(0x1ff))+_0x4d5136+_0x409286+(_0x5ccf(0x24a)+_0x5ccf(0x256)+_0x5ccf(0x286)+_0x5ccf(0x296))+_0x7a985e+'…\x0a');}}_0x372d78(_0x5ccf(0x238)+_0x5ccf(0x2cf)+_0x5ccf(0x294)+_0x5ccf(0x2d1)+_0x5ccf(0x2ac)+'t\x20'+Math[_0x5ccf(0x241)](_0x392065[_0x5ccf(0x250)+'ze']/(0x400*0x400))+(_0x5ccf(0x237)+_0x5ccf(0x2cb)+_0x5ccf(0x226)+_0x5ccf(0x223)));const _0xca21be=performance[_0x5ccf(0x230)](),_0x20415a=_0x587713?.[_0x5ccf(0x22f)]===_0x5ccf(0x2ab)&&!_0x10bfe4;let _0x428564;try{_0x428564=await _0x1240ef(_0x1dfa8c,_0x392065,!_0x1dca29);}catch(_0x58832b){if(!_0x20415a){await _0x5cf1f3(_0x1fa96c);throw _0x58832b;}_0x428564=0x1,process[_0x5ccf(0x20e)][_0x5ccf(0x30f)]((_0x58832b instanceof Error?_0x58832b[_0x5ccf(0x262)]:String(_0x58832b))+'\x0a');}if(_0x428564!==0x0){if(_0x20415a)process[_0x5ccf(0x20e)][_0x5ccf(0x30f)](_0x5ccf(0x261)+_0x5ccf(0x2ee)+_0x5ccf(0x328)+_0x1dfa8c[_0x5ccf(0x26e)]+(_0x5ccf(0x222)+_0x5ccf(0x292)+_0x5ccf(0x2ae))+_0x587713[_0x5ccf(0x26e)]+(_0x5ccf(0x252)+_0x5ccf(0x2fb)+_0x5ccf(0x245)+_0x5ccf(0x28e)));else return await _0x5cf1f3(_0x1fa96c),_0x428564;}else _0x372d78(_0x5ccf(0x203)+_0x5ccf(0x2c2)+((performance[_0x5ccf(0x230)]()-_0xca21be)/0x3e8)[_0x5ccf(0x2a6)](0x1)+'s.');}if(_0x10bfe4)return process[_0x5ccf(0x235)][_0x5ccf(0x30f)](_0x5ccf(0x22b)+_0x5ccf(0x2da)+_0x5ccf(0x30a)+_0x514629+'\x0a'),process[_0x5ccf(0x235)][_0x5ccf(0x30f)](_0x5ccf(0x28a)+_0x4d11e2+(_0x5ccf(0x2f3)+_0x5ccf(0x2fd)+_0x5ccf(0x2c7)+_0x5ccf(0x2a5)+_0x5ccf(0x27c)+_0x5ccf(0x26b))),0x0;return _0xb52dc4(_0x514629,_0x463511);}const _0x573abc=process[_0x5ccf(0x2ec)][0x1]?await _0xbce253[_0x5ccf(0x29b)](process[_0x5ccf(0x2ec)][0x1])[_0x5ccf(0x1f4)](()=>undefined):undefined;_0x573abc===fileURLToPath(import.meta.url)&&runStandaloneNpmEntry(process[_0x5ccf(0x2ec)][_0x5ccf(0x240)](0x2))[_0x5ccf(0x1fc)](_0x4857dc=>{process[_0x5ccf(0x224)]=_0x4857dc;},_0x4b2cdd=>{console[_0x5ccf(0x211)](_0x4b2cdd instanceof Error?_0x4b2cdd[_0x5ccf(0x262)]:String(_0x4b2cdd)),process[_0x5ccf(0x224)]=0x1;});
package/package.json CHANGED
@@ -1,8 +1,25 @@
1
1
  {
2
2
  "name": "@neotask/cli",
3
- "version": "0.0.0",
4
- "description": "Reserved for the Neotask CLI. Install it from https://neotask.ai.",
5
- "license": "UNLICENSED",
6
- "homepage": "https://neotask.ai",
7
- "files": ["README.md"]
3
+ "version": "2026.10.1",
4
+ "description": "Signed Neotask CLI and managed Gateway installer",
5
+ "type": "module",
6
+ "bin": {
7
+ "neotask": "bin/neotask.mjs"
8
+ },
9
+ "files": [
10
+ "bin/neotask.mjs",
11
+ "release.json",
12
+ "LICENSE"
13
+ ],
14
+ "engines": {
15
+ "node": ">=22"
16
+ },
17
+ "license": "SEE LICENSE IN LICENSE",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/NeotaskInc/Neotask"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ }
8
25
  }
package/release.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "2026.10.1",
4
+ "sourceSha": "f9706a3a2345bef09c9c3a1c0d928e25897f2201",
5
+ "expiresAt": "2026-11-01T00:11:16.000Z",
6
+ "trustRoot": {
7
+ "schemaVersion": 1,
8
+ "keys": [
9
+ {
10
+ "keyId": "neotask-cli-release-2026-09-29",
11
+ "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAoNfid/9IR5dUGw4oFCXT8XSlcFfo3zU97dZM+kBPH/0=\n-----END PUBLIC KEY-----\n",
12
+ "spkiSha256": "6e167e643a9cc40d5a38b9c2b9fdb486c2757fd939a84736d9c2b6498db752f6"
13
+ }
14
+ ],
15
+ "revokedKeyIds": []
16
+ },
17
+ "policy": {
18
+ "schemaVersion": 1,
19
+ "domain": "NEOTASK-STANDALONE-RELEASE-POLICY-V1",
20
+ "issuer": "https://neotask.ai",
21
+ "audience": "neotask-standalone-agent-bootstrap",
22
+ "minimumVersion": "2026.9.1",
23
+ "currentVersion": "2026.10.1",
24
+ "maxAgeMs": 2592000000,
25
+ "maxFutureSkewMs": 300000,
26
+ "generatedAt": "2026-10-02T00:11:16.000Z",
27
+ "signingKeyId": "neotask-cli-release-2026-09-29",
28
+ "signature": "cLjgYHwOamKvEui-rwCsIAxH8CIGyGnpXhJiHHeVPnJn3ls-y_i1mufkl_26_54Nlp5z4uHltl-sRWi_bNe9BA"
29
+ },
30
+ "targets": [
31
+ {
32
+ "name": "darwin-arm64",
33
+ "platform": "darwin",
34
+ "arch": "arm64",
35
+ "bootstrapUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.10.1/neotask-bootstrap-darwin-arm64",
36
+ "bootstrapSha256": "d0e60c2a5a7746b9cb5753dacd1a8d06452b95086f5ee6e5c0c721e87f5f5989",
37
+ "bootstrapSize": 6791394,
38
+ "manifestUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.10.1/manifest-darwin-arm64.json",
39
+ "artifactUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.10.1/neotask-cli-2026.10.1-darwin-arm64.zip",
40
+ "artifactSha256": "85f1b1dabfc3f6f776661629c90e985ebea3ea1152849a036911347fa75f0f5a",
41
+ "artifactSize": 192547613
42
+ },
43
+ {
44
+ "name": "linux-x64",
45
+ "platform": "linux",
46
+ "arch": "x64",
47
+ "bootstrapUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.10.1/neotask-bootstrap-linux-x64",
48
+ "bootstrapSha256": "bf227380f99c6791141452d91322f2a39d04e17aaabae0094f3fcb01a1637be2",
49
+ "bootstrapSize": 7815330,
50
+ "manifestUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.10.1/manifest-linux-x64.json",
51
+ "artifactUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.10.1/neotask-cli-2026.10.1-linux-x64.zip",
52
+ "artifactSha256": "b7634d0f769b2044176d3272e5171f191439fb6e4bde9a5ab02e17cd521a7d8d",
53
+ "artifactSize": 211013859
54
+ },
55
+ {
56
+ "name": "win32-x64",
57
+ "platform": "win32",
58
+ "arch": "x64",
59
+ "bootstrapUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.10.1/neotask-bootstrap-windows-x64.exe",
60
+ "bootstrapSha256": "ac70251836fc2a4ddac6421add1592043f6566783c5f59b7e8fe80e993b845f3",
61
+ "bootstrapSize": 7578112,
62
+ "manifestUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.10.1/manifest-win32-x64.json",
63
+ "artifactUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.10.1/neotask-cli-2026.10.1-windows-x64.zip",
64
+ "artifactSha256": "ae80e38ad043bc270e03986bd22340355cccd78e3b477305fcf3c35d67ec56a8",
65
+ "artifactSize": 169117218
66
+ }
67
+ ]
68
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # @neotask/cli
2
-
3
- Reserved for the Neotask CLI. Real releases are published by the Neotask release pipeline.